Firstly I don't understand english very well, so there may be a lot of mistakes.
I use python-2.6.2, wxPython2.8-win32-unicode-2.8.10.1-py26 and numpy-1.3.0-win32-superpack-python2.6 in this example.
So I would like to hnow, how to get variable elements form one class into another. I use wxPython, and i don't hnow how get value from "block" to show it into another "block". This program must be as graphical calculator with plot function.
mindis
0
Newbie Poster
Recommended Answers
Jump to PostTo use a variable from one class in another class you first need to make it available for other classes to use. To do this put "self." in front of the variable. When you create an instance of the class with the variable in, you will give this instance a …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.