473,386 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

gui - wait for dialog to close

hi!

i have an application which requires a username
what i am trying to do is when the application runs, a dialog window
appears which prompts the user for his name. once thats entered, the
dialog box is destroyed, the username stored and the application gui is
drawn

i tried doing this by adding a wait_window call in my application GUI's
init.
the idea was to suspend execution till the username is entered and the
dialog box destroyed before continuing.

that didn't work
how can i do this? i have the option of creating the dialog box and when
the username is entered then in the function that handles the username,
create the rest of the GUI. i was wondering if there is any other way

thanks

cheers


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Jul 18 '05 #1
4 2215
Ajay wrote:
hi!

i have an application which requires a username
what i am trying to do is when the application runs, a dialog window
appears which prompts the user for his name. once thats entered, the
dialog box is destroyed, the username stored and the application gui is
drawn

i tried doing this by adding a wait_window call in my application GUI's
init.
the idea was to suspend execution till the username is entered and the
dialog box destroyed before continuing.

that didn't work
how can i do this? i have the option of creating the dialog box and when
the username is entered then in the function that handles the username,
create the rest of the GUI. i was wondering if there is any other way

thanks

cheers


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

You did not state which GUI lib you are using. But in general you use a
modal dialog for that type of input. Before you delete the dialog read the
fields in the dialog.

John
Jul 18 '05 #2
i am using Tkinter
could you expand on that modal stuff

cheers
Quoting John Fabiani <jf******@yolo.com>:
Ajay wrote:
hi!

i have an application which requires a username
what i am trying to do is when the application runs, a dialog window
appears which prompts the user for his name. once thats entered, the
dialog box is destroyed, the username stored and the application gui

is
drawn

i tried doing this by adding a wait_window call in my application

GUI's
init.
the idea was to suspend execution till the username is entered and the
dialog box destroyed before continuing.

that didn't work
how can i do this? i have the option of creating the dialog box and

when
the username is entered then in the function that handles the

username,
create the rest of the GUI. i was wondering if there is any other way

thanks

cheers


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

You did not state which GUI lib you are using. But in general you use a
modal dialog for that type of input. Before you delete the dialog read
the
fields in the dialog.

John
--
http://mail.python.org/mailman/listinfo/python-list

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Jul 18 '05 #3
Ajay <ab******@mail.usyd.edu.au> writes:
hi!

i have an application which requires a username
what i am trying to do is when the application runs, a dialog window
appears which prompts the user for his name. once thats entered, the
dialog box is destroyed, the username stored and the application gui is
drawn

i tried doing this by adding a wait_window call in my application GUI's
init.
the idea was to suspend execution till the username is entered and the
dialog box destroyed before continuing.

that didn't work
how can i do this? i have the option of creating the dialog box and when
the username is entered then in the function that handles the username,
create the rest of the GUI. i was wondering if there is any other way


Which of the several toolkits are you using? In wxPython you can use
one of the provided dialogs or create a new modal dialog...

--
Godoy. <go***@ieee.org>
Jul 18 '05 #4
hi!

i am using Tkinter

cheers
Quoting Jorge Godoy <go***@ieee.org>:
Ajay <ab******@mail.usyd.edu.au> writes:
hi!

i have an application which requires a username
what i am trying to do is when the application runs, a dialog window
appears which prompts the user for his name. once thats entered, the
dialog box is destroyed, the username stored and the application gui

is
drawn

i tried doing this by adding a wait_window call in my application

GUI's
init.
the idea was to suspend execution till the username is entered and the
dialog box destroyed before continuing.

that didn't work
how can i do this? i have the option of creating the dialog box and

when
the username is entered then in the function that handles the

username,
create the rest of the GUI. i was wondering if there is any other way


Which of the several toolkits are you using? In wxPython you can use
one of the provided dialogs or create a new modal dialog...

--
Godoy. <go***@ieee.org>
--
http://mail.python.org/mailman/listinfo/python-list

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: GTi | last post by:
Hello... I have a page located in a frame. This page contains a form. When the user submit this form I want to popup a "Please Wait" window popup window The post may take some time for the...
3
by: Kannan | last post by:
Hello, I have a requirement that specifies that I display a "Please Wait..." window (preferably modal) along with a gif that mimics a progress bar during a save operation. The dialog needs to be...
3
by: Dustin Davis | last post by:
I'm doing image conversion in my application and it seems to take some time on some tasks. I'd like to show a "Converting..." type message in a dialog box or splash screen of sorts. The problem...
2
by: AccessPro | last post by:
Hi, I am creating an image-management database. I want my users to be able to double-click on an image (a preview of what exists in a network subfolder), and for the code to open the image in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.