To change the keyboard shortcuts, search share/dreampie/dreampie.glade for:
<accelerator key="Up" signal="activate" modifiers="GDK_CONTROL_MASK"/>
and replace it with whatever suits you. The same goes to "Down".
To disable the beep, add at the end of dreampielib/gui/beep.py:
def beep():
pass
Is this a common keyboard shortcut on Macs, or is it something you
chose? If it is common, would you suggest another shortcut?
Thanks,
Noam
Thanks, I like the idea. I will add it when I come back of vacation.
> Modifying beep.py as you said got rid of beeping sometimes, such as for a
> syntax error, but not always- it still beeps for using the arrow keys when
> the input box is empty, for example. It doesn't look like those beeps are
> coming from DreamPie code, must just be from X11. Not a big deal.
Too bad... If you come up with a solution, please tell me.
> Just out of curiosity, is there any reason you used GTK rather than say
> Tkinter?
Yes, Tkinter is old and doesn't look good on neither linux nor
windows. Also, its event system is horrible (no way to connect
multiple handlers to one event) and its text box is slow (so IDLE gets
stuck with too much text displayed.)
I could have used Qt, which has much better Mac support and probably
better Windows support. I chose GTK because I thought there would be
less problems with its Windows support (it's mostly ok, but still has
problems), and because it has a much more pleasant Python bindings,
including native Python documentation. I'm not sure if it was the
right decision, but I don't think changing to Qt at this stage would
be reasonable.
Noam
P.S. it seems that lines of 2 chars or less are inaccessible via
history up/down.
Is this a feature? I can see how it helps with e.g. pdb, but it's
somewhat confusing...
--
Beni Cherniavsky-Paskin <cb...@users.sf.net>
Great!
>
> P.S. it seems that lines of 2 chars or less are inaccessible via
> history up/down.
> Is this a feature? I can see how it helps with e.g. pdb, but it's
> somewhat confusing...
It's a feature, which indeed was meant to help with pdb. But maybe it
should be improved.
What do you think about only allowing 2-character commands if they are
one of the last three commands? Beyond that I really think it makes no
sense to want to recall them.