473,503 Members | 6,354 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

tkinter help

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
3 1310
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5958
by: Josh | last post by:
Caution, newbie approaching... I'm trying to come up with a very simple Tkinter test application that consists of a window with a drop-down menu bar at the top and a grid of colored rectangles...
3
6994
by: srijit | last post by:
Hello, Any idea - why the following code crashes on my Win 98 machine with Python 2.3? Everytime I run this code, I have to reboot my machine. I also have Win32all-157 installed. from Tkinter...
7
11882
by: SeeBelow | last post by:
Do many people think that wxPython should replace Tkinter? Is this likely to happen? I ask because I have just started learning Tkinter, and I wonder if I should abandon it in favor of...
1
3836
by: corrado | last post by:
Hello I have an application running several thread to display some financial data; basically I have a thread displaying HTML tables by means of Tkhtml, another implementing a scrolling ticker...
8
11846
by: Dustan | last post by:
I'm trying to get a scrollbar bound with a Frame, and I keep on getting a scrollbar, but it doesn't actually scroll. Some help, please?
3
3592
by: dwelch91 | last post by:
I'm trying unsuccessfully to do something in Tk that I though would be easy. After Googling this all day, I think I need some help. I am admittedly very novice with Tk (I started with it...
1
5205
by: yvesd | last post by:
hello i want to intercept tkinter python system events like wm_delete_window and if possible for any window, but the newest code I've produced give me an error : Traceback (most recent call...
1
2946
by: Kevin Walzer | last post by:
I'm not sure how often members of this list visit the Tkinter wiki at http://tkinter.unpythonic.net/wiki/FrontPage; this wiki seems to have less traffic in general than the Tcl/Tk wiki at...
3
2958
by: joshdw4 | last post by:
I hate to do this, but I've thoroughly exhausted google search. Yes, it's that pesky root window and I have tried withdraw to no avail. I'm assuming this is because of the methods I'm using. I...
3
3900
by: J-Burns | last post by:
Hello. Im a bit new to using Tkinter and im not a real pro in programming itself... :P. Need some help here. Problem 1: How do I make something appear on 2 separate windows using Tkinter? By...
0
7207
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7291
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5598
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4690
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1522
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.