Forum Moderators: Staff
Poser Python Scripting F.A.Q (Last Updated: 2024 Sep 18 2:50 am)
I am rethinking the whole thing now :)
It works , but its ugly , and I dislike ugly user interfaces .
Another think though, sometimes when I start a script that uses tkinter I get multiple windows open of the gui. Is this simply multiple invocations of the script , or is there some issue within tkinter that spawns multiple copies of it ?
Tkinter has some sort of hidden memory that preserves its windows
between invocations. Usually you can just use the menu choice to Reinitialize Python.
My python page
My ShareCG freebies
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
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