By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,767 Members | 1,357 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,767 IT Pros & Developers. It's quick & easy.

tkinter help

P: n/a
hi eveyrbody , i have started working on python tkinter,
While I was working on one of the tkinter classes..named listbox
widget. I had a slight problem.

Now let me tell you that i was able to create a simple listbox which
had 6 options which one can select, but Now what I want is that from
the available menu, if I select an option it should give me another
menu associated with that option. Its like digging up that option to do
advance search.

Please I need help as I am making my project
Thanks to eveyrbody who will take time to read this and solve it .

Jul 18 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
add a xscrollcommand and/or yscrollcommand keyword argument to the
construction of your listbox.

def func(*a):
print "i'm a callback!"

L = Tkinter.Listbox(root, yscrollcommand=func) # note no parens
after func
groves wrote:
hi eveyrbody , i have started working on python tkinter,
While I was working on one of the tkinter classes..named listbox
widget. I had a slight problem.

Now let me tell you that i was able to create a simple listbox which
had 6 options which one can select, but Now what I want is that from
the available menu, if I select an option it should give me another
menu associated with that option. Its like digging up that option to do
advance search.

Please I need help as I am making my project
Thanks to eveyrbody who will take time to read this and solve it .
Jul 18 '06 #2

P: n/a
On Tue, 2006-07-18 at 08:37 -0700, groves wrote:
hi eveyrbody , i have started working on python tkinter,
While I was working on one of the tkinter classes..named listbox
widget. I had a slight problem.

Now let me tell you that i was able to create a simple listbox which
had 6 options which one can select, but Now what I want is that from
the available menu, if I select an option it should give me another
menu associated with that option. Its like digging up that option to do
advance search.

Please I need help as I am making my project
Thanks to eveyrbody who will take time to read this and solve it .
Perhaps if you posted your code so far we could help - otherwise we
would just be shooting in the dark.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Jul 18 '06 #3

P: n/a
hi,

groves wrote:
Now let me tell you that i was able to create a simple listbox which
had 6 options which one can select, but Now what I want is that from
the available menu, if I select an option it should give me another
menu associated with that option. Its like digging up that option to do
advance search.
If I understood you correctly, this is how I would go for it:
consider to create all submenus during initialization but make them
invisible
(put each of them in a single frame) anf toggle the visibility of these
frames
in the handler of your option menu.

- harold -

Jul 18 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.