in reply to Re: getting entered data from a pTk megawidget
in thread getting entered data from a pTk megawidget

I think I looked at Tk::LabEntry -- and yes I am basically rewriting it. But I want it done MY WAY. It must have a programmer-setable message; and it must have an 'Abort' or 'Quit' button. I have done this several times in a program I am writing. I want to convert this block of code into a megawidget to avoid rewriting this code repeatedly. Building the widget appears easy -- getting the input back so the application can use it is a pain...

  • Comment on Re^2: getting entered data from a pTk megawidget

Replies are listed 'Best First'.
Re^3: getting entered data from a pTk megawidget
by Anonymous Monk on Jan 11, 2022 at 01:36 UTC
    getting the input back so the application can use it is a pain...

    so you're saying delegates isnt working for get method? Strip all other parts if program until you get get delegates working...

    im on mobile

      I found 2 typos in the Delegates and ConfigSpecs lines. (I copied from Learning PERL/Tk). I still cant get my entered text back.

        I finally got it! I had to add a bind command. If <Return> is pressed, then print what is in the Entry box. Now I can get back to my version of the LabEntry widget -- it also has an Abort/Quit button under the Entry field/widget. I will save this as an example to follow...