473,508 Members | 2,130 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

message box halts prgram flow

HI

I am creating a tkinter app.

example

tkMessageBox.showinfo("Window Text", "A short message")
print "blah"

The execution of the application halts when the message box is
displayed until the user clicks OK, then "blah is printed.

However I want the program to display message box and continue on to
print blah without waiting for user response.

Any suggestions on how to go about this?

cheers David

Mar 18 '06 #1
1 1525
li********@yahoo.com.au a écrit :
HI

I am creating a tkinter app.

example

tkMessageBox.showinfo("Window Text", "A short message")
print "blah"

The execution of the application halts when the message box is
displayed until the user clicks OK, then "blah is printed.
Yeps, this is pretty much what anyone would expect from a sensible GUI
toolkit.

However I want the program to display message box and continue on to
print blah without waiting for user response.
What's your use case ?
Any suggestions on how to go about this?


Either use a non-modal window instead of a modal dialog box or use
different threads.
Mar 19 '06 #2

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

Similar topics

1
2287
by: Roy G. Vervoort | last post by:
I would like to create a shortcut on my desktop and be able to start a program (.exe) from the prgram tree (start > Programs > name program). Normally it wil be created with the setup program...
9
1753
by: Alvin Bruney [MVP] | last post by:
Exceptions must not be used to control program flow. I intend to show that this statement is flawed. In some instances, exceptions may be used to control program flow in ways that can lead to...
0
1369
by: Pedro Lucas via .NET 247 | last post by:
I have a weird .RC corruption problem with MSVC .NET 2003. I have a .RC file that has been in use for years with .NET inside a project called Netcount. Recently I upgraded to .NET 2003 and...
2
4976
by: brianlum | last post by:
Hi, I have been looking for a good way to convert python code into a control flow graph. I know of Python functions that will convert an expression into an abstract syntax tree (i.e. ast =...
0
1385
by: kellyonlyone | last post by:
E-XD++ MFC Library Enterprise Edition V9.80 is released (100% Source Code)! ("The only Flow/Diagramming Kits that provides full source code of components for MFC and ActiveX in a single package!")...
3
2590
by: Lowrider | last post by:
I'm new to the VB programming world and am having a problem with flow control. In the code below I check 3 textboxes and display a messagebox if one or more are left blank. The problem lies in that...
15
2266
by: Mikhail Kovalev | last post by:
Fatal error: Maximum execution time of 3600 seconds exceeded in z:\home \localhost\www\somefile.php on line 138 php.ini setting fixes default max execution time at 30 sec, In the script itself I...
1
1382
by: R.M. | last post by:
When I open small .php file, I can edit it in my Eclipse PDT. But when I open large .php file and I try to use scroll bar, Eclipse halts (I mean it doesn't respond). I use last stable version of...
3
2422
by: malojinaik | last post by:
Why the prgram crashes when somebody tries to add two pointers.Is C language built like that or adding two pointers will cause the problem somehow?Please answer to this I am bit confused.
0
7123
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
7326
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,...
1
7046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5627
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,...
0
3194
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
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1557
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
766
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.