[Tkinter-discuss] binding and overrideredirect problem

2008-07-08 Thread Oguz Yarimtepe
Hi, I have a problem about using overrideredirect(1) and binding events to the keys. At my application i am creating root and binding an action to a ke press as: self.root = Tk() #self.root.overrideredirect(1) self.root.focus() #self.frame.pack() self.root.bind('', self.action) self.root.title

Re: [Tkinter-discuss] Method calling upwards; Listbox arrow events ?

2008-07-08 Thread Cameron Laird
On Tue, Jul 08, 2008 at 02:48:09AM -0700, gegard wrote: . . . > > ... use the <> event... > That works perfectly, thank you. I'm very grateful. > > That's in none of the main resources I was using (effbot.org, NMT, an early >

Re: [Tkinter-discuss] Method calling upwards; Listbox arrow events ?

2008-07-08 Thread gegard
Vasilis Vlachoudis wrote: > ... use the <> event... That works perfectly, thank you. I'm very grateful. That's in none of the main resources I was using (effbot.org, NMT, an early copy of Mark Lutz, and the tk-lib files in the python installation), except for a comment contributed by 'Chris' at

Re: [Tkinter-discuss] Method calling upwards; Listbox arrow events ?

2008-07-08 Thread gegard
gegard wrote: > ... or a way of catching the event at a higher level ... I'm taking this approach, because I've sorted out how it works (and have not yet worked out [if I can|how to] make the parent object methods visible). So the binding and the click() are now at the top level. Regards, Geoff

Re: [Tkinter-discuss] Method calling upwards; Listbox arrow events ?

2008-07-08 Thread Vasilis Vlachoudis
The best solution I found on the web to overcome the binding problem is to use the <> event, which is called after a change in the selection of the list self.list.bind("<>", self.listChanged) def listChanged(self, event): print "selection=",self.list.curselection() gegard wrote: I'm n

Re: [Tkinter-discuss] Creating a tag, and setting a margin

2008-07-08 Thread Michael O'Donnell
On Tue, Jul 8, 2008 at 8:59 AM, Alexnb <[EMAIL PROTECTED]> wrote: > > Okay, this may sound noobish, but I just cannot figure this out. I am trying > to set a tag in a Text widget of mine, but I don't know how and I am also > trying to set a margin for the tag, but I have no clue how to do either!

[Tkinter-discuss] Creating a tag, and setting a margin

2008-07-08 Thread Alexnb
Okay, this may sound noobish, but I just cannot figure this out. I am trying to set a tag in a Text widget of mine, but I don't know how and I am also trying to set a margin for the tag, but I have no clue how to do either! Please help this poor noob! -- View this message in context: http://www.