in reply to Re^4: Can't get Dialog or messageBox to work from button
in thread Can't get Dialog or messageBox to work from button

Probably that in Tk methods, Tk prefer to have the address of the functions (object reference).
  • Comment on Re^5: Can't get Dialog or messageBox to work from button

Replies are listed 'Best First'.
Re^6: Can't get Dialog or messageBox to work from button
by Corion (Patriarch) on Jan 11, 2016 at 16:58 UTC

    But that's what sub { ... } already returns. There is no need to have a subroutine reference that itself returns another subroutine reference when called, especially when you want the function call to happen instead.