SPUG: To kill a MainWindow

Brose, Eric eric.brose at attws.com
Fri Apr 6 12:17:09 CDT 2001


I've been working with perl for win32 using the Tk module, trying to develop
a simple GUI interface that connects to a database.  I don't really have any
idea what I'm doing, but I've managed to get most of the core functionality

One thing I have yet to overcome is how to destroy an individual window (I
have multiple windows) without exiting the whole app.  The only command i
can find is exit, but that destroys all windows.

The user can always click on the x in the upper-right hand corner, but I'd
like to be able to use a command initiated from a button press.

So...if anyone with Tk know-how can clue me in, i'd be much obliged.


 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/

More information about the spug-list mailing list