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
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
>
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
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
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
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!
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.