Home > Archive > Tcl > October 2004 > Tk message box without tk main window?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Tk message box without tk main window?
|
|
| arthurpaulh@yahoo.com 2004-10-04, 9:09 am |
| 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
| |
| John Seal 2004-10-04, 4:06 pm |
| arthurpaulh@yahoo.com wrote:
> 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.
| |
| holgerj 2004-10-15, 8:56 pm |
| John Seal <sealj@indy.raytheon.com> wrote in message news:<Zxc8d.1$hd6.0@dfw-service2.ext.ray.com>...
> arthurpaulh@yahoo.com wrote:
>
> 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.
| |
| Rufus V. Smith 2004-10-18, 4:01 pm |
|
"holgerj" <holger@jakobs.com> wrote in message
news:78f67af0.0410151339.550e982@posting.google.com...
> John Seal <sealj@indy.raytheon.com> wrote in message
news:<Zxc8d.1$hd6.0@dfw-service2.ext.ray.com>...
>
> 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
| |
| lvirden@gmail.com 2004-10-23, 3:56 pm |
|
According to Rufus V. Smith <nospam@nospam.com>:
: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.
<URL: mailto:lvirden@gmail.com > <URL: http://www.purl.org/NET/lvirden/ >
|
|
|
|
|