Tk message box without tk main window? 
Author Message
 Tk message box without tk main window?

Hello,

I'd like to show a message box from tcl code, but when tk_messageBox
is executed, a second window named "tk" appears, and it dissappears
only after the interpretor is deleted.

It is possible to have only the message box on the screen?

Thanks a lot,

Arthur Harabula



Fri, 23 Mar 2007 19:21:55 GMT  
 Tk message box without tk main window?

Quote:

> It is possible to have only the message box on the screen?

Executing [wm withdraw .] will cause the main Tk window to not appear.
Withdraw the main window before posting the message box, of course.


Fri, 23 Mar 2007 21:48:11 GMT  
 Tk message box without tk main window?

Quote:


> > It is possible to have only the message box on the screen?

> Executing [wm withdraw .] will cause the main Tk window to not appear.
> Withdraw the main window before posting the message box, of course.

The good thing about this is that the application does not even appear
in the taskbar when the toplevel window is withdrawn. Very nice for a
background application which only every now and then pops up a
tk_messageBox.

This kind of app can only be terminated using the task manager in
Windows or using kill in Unix/Linux/BSD. Most user won't even notice
that a Tcl/Tk application is running.



Wed, 04 Apr 2007 05:39:04 GMT  
 Tk message box without tk main window?



Quote:

> > > It is possible to have only the message box on the screen?

> > Executing [wm withdraw .] will cause the main Tk window to not appear.
> > Withdraw the main window before posting the message box, of course.

> The good thing about this is that the application does not even appear
> in the taskbar when the toplevel window is withdrawn. Very nice for a
> background application which only every now and then pops up a
> tk_messageBox.

> This kind of app can only be terminated using the task manager in
> Windows or using kill in Unix/Linux/BSD. Most user won't even notice
> that a Tcl/Tk application is running.

Aha, a "stealth" application.  I get too many of those on my kid's
computers...

But speaking of termination, could you not have the message box
terminate the application, to obviate the need for that elaborate
kill process?

Rufus



Fri, 06 Apr 2007 23:00:44 GMT  
 Tk message box without tk main window?


:But speaking of termination, could you not have the message box
:terminate the application, to obviate the need for that elaborate
:kill process?

Or you could look into setting something up similar to Unix Tk's
send command, and sending a terminate command to the application
from a second command, tkcon, etc.

--
<URL: http://wiki.tcl.tk/> MP3 ID tag repair < http://www.fixtunes.com/?C=17038 >
Even if explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.



Wed, 11 Apr 2007 22:26:27 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Q: Tk app without main window?

2. (Repost) Tk 8.2: How to embed main Tk window in own (Win32) app

3. Tk 8.2: How to embed main Tk window in own app

4. - Tcl without windows, Tcl without Tk for windows.

5. Hiding main TK main window

6. executing external TK scripts from a main TK app

7. TK Message box and backquotes issue

8. Multiple main windows and apps in one tk process

9. main tk window control

10. Main window in Tk

11. THIS IS VERY FRUSTRATING: TK MAIN WINDOW

12. Tk Main Window HELP (again :() )

 

 
Powered by phpBB® Forum Software