Hi all,
I'm using Python 2.5.1 and TkInter.
Hey here is the problem. Suppose I have 4 radio buttons (lets say values 1,2,3 and 4). They arranged in 2 columns (Each of the 2 columns has 2 radio buttons). I want to produce a specific action whenever I select a total of 2 radio buttons (and click on the "Submit" button), 1 from each column. Suppose say 1 and 3 are selected it should print 'a'. If 1 and 4, then print 'b' and similarly for radio button number 2. Any ideas? I think that 2 variables v1 and v2 for the 2 sets of radio buttons should be defined and the 'dct' command implemented though I'm stuck at this. However any other ideas will be great too.... Looking forward .... Thanks!
I'm using Python 2.5.1 and TkInter.
Hey here is the problem. Suppose I have 4 radio buttons (lets say values 1,2,3 and 4). They arranged in 2 columns (Each of the 2 columns has 2 radio buttons). I want to produce a specific action whenever I select a total of 2 radio buttons (and click on the "Submit" button), 1 from each column. Suppose say 1 and 3 are selected it should print 'a'. If 1 and 4, then print 'b' and similarly for radio button number 2. Any ideas? I think that 2 variables v1 and v2 for the 2 sets of radio buttons should be defined and the 'dct' command implemented though I'm stuck at this. However any other ideas will be great too.... Looking forward .... Thanks!
Comment