Feb-18-2017, 04:20 AM
(Feb-17-2017, 06:11 PM)Larz60+ Wrote: Correct me if I am wrong, but I think your saying that you want to something like the following:
from tkinter import * class Notepad: def __init__(self): self.root = Tk() def main(): np = Notepad() master = np.root master.mainloop() if __name__ == '__main__': main()
so in this case how does any method in class Notepad find Tk ... or what if you do:
from tkinter import * alt_Tk = Tk class Notepad: def __init__(self): self.root = alt_Tk() def main(): np = Notepad() master = np.root master.mainloop() if __name__ == '__main__': main()in my pipelines class (not done, yet) i had a bunch of initial values assigned before the methods (and after the imports) but the assigned values did not show up even though the imports did.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.