in reply to perl TK: Dynamically changing number of inputs at run time.

If he wants to convert 4 or 5 or 6, my code will not be able to do that.

:) it already does do that, the user just has to change the number, your program only has to stop clearing the output window

Is this possible?

Sure, but does it make a good interface?

See these examples of this type of thing (as I don't feel like writing any code at the moment) Re: Tk: Creating label in hash, Re^5: Multiple frames, the "secret" is understanding scoping and life cycle of variables

  • Comment on Re: perl TK: Dynamically changing number of inputs at run time.

Replies are listed 'Best First'.
Re^2: perl TK: Dynamically changing number of inputs at run time.
by Ganesh Bharadwaj1 (Sexton) on Jun 20, 2016 at 01:38 UTC
    Hi Monk, Thank you for your help. Yes. I do understand that. But that is not the problem I am facing. What I actually expect is that, the user initially specifies a number, say 3. Which means he wants to enter 3 Celsius values simultaneously in 3 different boxes. So dynamically, I can get 3 boxes are created, so that I can enter the Celsius values in 3 different boxes. Also there are 3 different boxes at the text location with 3 different values of Fahrenheit. Assuming user selects that he wants to enter 4 celcius values simultaneously, 4 enter boxes and 4 results boxes are created and so on.