[python-win32] Tkinter newbie

John Sampson jrs.idx at ntlworld.com
Mon Mar 2 22:21:19 CET 2015


Hello -

I am trying to find out how to write code in Tkinter that opens a 
file-selection dialog so that I can open a file. It would be part of a 
program, not a whole program that does nothing else.

I have found many examples of Tkinter code, each one using a different 
approach, some using a geometry manager, some not, some using an 
object-oriented approach, some not, etc.
What I am looking for are examples of code with explicit explanations of 
each *term* in the code, explaining what it is, what it does and why it 
has to be there, why in one place it has to be self.x but in another it 
has to be x(self), why it has to be followed by '()' in one place but 
not in another, how the variables are scoped and similar questions. At 
the moment all my guesses are wrong.

Are there any such examples?

Regards

John Sampson


More information about the python-win32 mailing list