Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this messagearthurpaulh@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.
Post Follow-up to this messageJohn Seal <sealj@indy.raytheon.com> wrote in message news:<Zxc8d.1$hd6.0@dfw-service2.ext.r ay.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.
Post Follow-up to this message"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
Post Follow-up to this messageAccording 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[/u...rg/NET/lvirden/ >
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.