Re: [Tkinter-discuss] Kinetic Scrolling and Keyboard Shortcuts in Menus

2008-08-31 Thread Guilherme Polo
On Sun, Aug 31, 2008 at 3:47 PM, Cam Farnell <[EMAIL PROTECTED]> wrote: > I ran into exactly this keyboard shortcut issue while writing the Rapyd-Tk > Python development environment (http://www.bitflipper.ca/rapyd/). My > solution is based on these functions, where the left part is the usual menu >

Re: [Tkinter-discuss] Kinetic Scrolling and Keyboard Shortcuts in Menus

2008-08-31 Thread Cam Farnell
I ran into exactly this keyboard shortcut issue while writing the Rapyd-Tk Python development environment (http://www.bitflipper.ca/rapyd/). My solution is based on these functions, where the left part is the usual menu label and the right part is the shortcut. If the length of the shortcut tex

Re: [Tkinter-discuss] Kinetic Scrolling and Keyboard Shortcuts in Menus

2008-08-31 Thread Guilherme Polo
On Sun, Aug 31, 2008 at 1:11 AM, Johnston Jiaa <[EMAIL PROTECTED]> wrote: > I'm having trouble trying to make a kinetic scrolling canvas. The code > looks something like this... > > def scroll(acceleration, speed): >while speed >= 0: >canvas.xview_scroll(-speed, "units") >

[Tkinter-discuss] Kinetic Scrolling and Keyboard Shortcuts in Menus

2008-08-31 Thread Johnston Jiaa
I'm having trouble trying to make a kinetic scrolling canvas. The code looks something like this... def scroll(acceleration, speed): while speed >= 0: canvas.xview_scroll(-speed, "units") speed -= acceleration This doesn't update the drawing of the canv