Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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

Report this thread to moderator Post Follow-up to this message
Old Post
arthurpaulh@yahoo.com
10-04-04 02:09 PM


Re: Tk message box without tk main window?
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.

Report this thread to moderator Post Follow-up to this message
Old Post
John Seal
10-04-04 09:06 PM


Re: Tk message box without tk main window?
John 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.

Report this thread to moderator Post Follow-up to this message
Old Post
holgerj
10-16-04 01:56 AM


Re: Tk message box without tk main window?
"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



Report this thread to moderator Post Follow-up to this message
Old Post
Rufus V. Smith
10-18-04 09:01 PM


Re: Tk message box without tk main window?
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[/u...rg/NET/lvirden/ >

Report this thread to moderator Post Follow-up to this message
Old Post
lvirden@gmail.com
10-23-04 08:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Tcl archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:49 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.