I am sorry but I can't get it how you are getting the output.
The value in select is always 0 and never turns 1 .
Also when I write (value == 0 ) in place of 1 and click on proceed subsequently the only output is 0, 0
User Profile
Collapse
-
Hey ,
Thanks for replying ....
I understood what you are saying but unfortunately the code that you modified isn't working. The value in select always gets 0 . I don't know that also why is it happening...
Thanks a lot for answering though...Leave a comment:
-
Complete program : not working the way I want to
...Code:from Tkinter import * class NextScreen(): def __init__(self,root): self.Check1 = IntVar() self.Check2 = IntVar() self.space = Label(root , text = "\n Also select the classifier").grid(row = 0) self.C1 = Checkbutton(root, text = "C", variableLeave a comment:
-
Hey I am not understanding what is wrong with my code.
What I do I am telling you in comments and not code.
I copy the above Test class as it is
...Code:class Test: .... .... class test: def __init__(self,root): .... def change(self): if(a==1): # any checking condition root.destroy() t1 = Tk()Leave a comment:
-
Checkbox Values not coming correct
Hey , I got my mistake which was that in checkbox command the variable should be self.CheckVar1. But I have ran into problems. I wanted 2 checkboxes and a button which would print individual boxes values. The code is shown below but I can't figure out what I am doing wrong.
...Code:def __init__(self,root): self.CheckVar1 = IntVar() self.CheckVar2Leave a comment:
-
...Code:class NextScreen(): def __init__(self,root,val): self.CheckVar1 = IntVar() self.CheckVar2 = IntVar() self.label = Label(root,text = " \n Click on what do you wish to do \n ").grid(row = 0) self.calculate = Button(root,text = "CALCULATE THE THRESHOLDS").grid(row = 1,column = 0)Leave a comment:
-
Combined event handling on Tkinkter
Hey
I am making a GUI Program in Tkinter and am running into problems.What I want to do is draw 2 checkboxes and a button. According to the user input next steps should take place. A part of my code has been shown below :-
...Code:CheckVar1 = IntVar() CheckVar2 = IntVar() self.C1 = Checkbutton(root, text = "C Classifier", variable = CheckVar1, onvalue = 1, offvalue = 0, height=5,width = 20).grid(row=4)
-
Hey my problem is that c2 is working fine on its own . But when I add these statements to work c1 after c2 the Tk window gets formed with the error that c1 has no Tk attribute.
What is difference between this and a2 = Toplevel(root)Leave a comment:
-
How to create different application windows in Tkinter?
Hey all
I am trying to make GUI windows using Tkinter and have got stucked. Its exactly like an installation setup where you move to new windows . I have been unable to understand how to create multiple application windows in Tkinter.
I want that according to user input I should be directed to new screen belonging to a new class like follows :-
...Code:class c1 : def __init__: -
yeah ... sorry for that....
I am working on linux platform and yes for the time being I am assuming a single stack and not associated with a multithreading environment....
Is there a particular error like SIGBUS that I can check for
???Leave a comment:
-
More on it....
Is it possible that I take a pointer and increment its value till it exceeds stack boundary and I get some error ??Leave a comment:
-
High address of stack in C
First of all I would like to mention that this is required as a part of project that I am making.
What I want to do is identify the objects made up at runtime in C for a conservative garbage collector.
Here I want to search the stack for all the pointer values.
So I can find one end by simply declaring a variable and finding the address of it.
The problem comes in finding the other end of stack.... -
Hey,
It seems you are right as now both the values that you gave print 1.11E-8 , even when I have set the precision to 28.
IS there any way I can get this to work in decimal way.
Thanks a lot....Leave a comment:
-
Problems in Decimal Package
I am having a very strange problem which I am unable to figure out.
I wanted all my data to be printed in decimals and not in exponential terms.
So I am using decimal module.
print "\n GENUINE ACCEPTANCE RATE :\t ", GA/Decimal(users)
Now I have set the precision to 9 and when I try to run in the shell it gives me the correct value but during execution of this program for GA=2 and... -
Plotting problem in python
Hello all,
I have a large set of data having over million entries and I want to plot it in a graph.
However the 2 libraries that I know of matplotlib and PyX both give me memory error since one requires file to be loaded and other requires such a huge list.
I am in need of a library that plots data as soon as it comes and there is no need of storing it.It could also be some type of using an application... -
fork help
hey,
Is there any way to share memory space with child process created using fork.
Basically I have a start pointer that updates a queue as soon as a process is created with its pid.
But for each process a new start pointer is being created.
How can I resolve the problem.
Thanks a lot..... -
Doubt
What i want to know is if there 's a function in python that does exact matching of regular expression.
The docs say that the match function returns true if some part of it gets accepted.....
Thanxx a lot....Leave a comment:
-
RE exact match
I am having problem in re module of python.
when i do a call of match function it returns true if first of the expression is true.
For Eg :- Expression like ([a-z]+([+][a-z])*) to denote
(a-z)^* + (a-z)^* returns true for ab+ and ab+12
What is the correct method to match exact expression in re module of python ??
That is above 123 should not be accepted but it still... -
-
Class object creation on the fly
Hello all,
Lets say I have a class and I have stored the number of objects in a file.
The problem i am facing is that how to create the dynamic number of class objects seeing that I don't know their number and thus can't create directly using
object_name=cla ss_name(argumen ts)
Can lambda function be used here????
Thanxx a lot !!!
No activity results to display
Show More
Leave a comment: