markschum opened this issue on Apr 10, 2008 · 9 posts
markschum posted Thu, 10 April 2008 at 10:17 AM
Hi all,
I have a scipt I am writing that will use tkinter for a user gui. That bits working .
I want to do some stuff BEFORE initiating the gui and I have worked out that it can be done and that bit is working. It consists of getting a folder path using the dialog and a project name and verifying that the folders have been created and the project name is valid .
The problem I have is getting a variable into the class code.
I have used a global definition for the variable name and I get an error message saying the variable has not been defined in the statement that uses it within the class code .
self.mystatus = Label(self, relief = GROOVE)
self.mystatus.config(text = outpath)
Any ideas ?
If I put the dialog inside thhe class it doesnt work :(
probably to do with setting the parent window