Block in Perl/TK MainWindow destroy

Discussion in 'Perl' started by Cyril Vi?ville, Jun 29, 2004.

  1. Hello everybody,

    I would like to know how to block the destroy of the MainWindow with
    the cross and with right click and close?

    I have actually a basic start :

    my $window = MainWindow->new;
    $window->bind("<Destroy>", sub { print "Hello\n" });
    MainLoop;


    I have hello printed but after it's the destroy and i want to block
    that
    Cyril Vi?ville, Jun 29, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. jing
    Replies:
    3
    Views:
    2,715
    pansy4u
    Apr 8, 2006
  2. morrell
    Replies:
    1
    Views:
    925
    roy axenov
    Oct 10, 2006
  3. Ook
    Replies:
    2
    Views:
    308
  4. Replies:
    2
    Views:
    249
  5. Iain King
    Replies:
    2
    Views:
    244
    Ryan Ginstrom
    Apr 17, 2008
Loading...

Share This Page