How can I set the value of the textedit box and slider of ui with the value from a config file when it has been created?
Michael Torrie
torriem at gmail.com
Tue Oct 1 15:11:01 EDT 2019
More information about the Python-list mailing list
Tue Oct 1 15:11:01 EDT 2019
- Previous message (by thread): How can I set the value of the textedit box and slider of ui with the value from a config file when it has been created?
- Next message (by thread): [RELEASE] Python 3.8.0rc1 is now available
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 10/1/19 9:51 AM, Spencer Du wrote: > Hi > How can I set the value of the textedit box and slider of ui with the value from a config file when it has been created meaning if a configuration file exists then set the UI with value from the config file otherwise load ui with nothing set to any value. Your code appears to try to do all this in the printValue() method of your class, however nothing calls that method. Most likely you'd want to move that code to the __init__() initializer. I can't really comment further since your code cannot be run as posted, since it imports a "myconfig" module that is not provided. More specific help regarding PyQt perhaps may be found at the PyQt mailing list that Riverbank Software (the makers of PyQt) host).
- Previous message (by thread): How can I set the value of the textedit box and slider of ui with the value from a config file when it has been created?
- Next message (by thread): [RELEASE] Python 3.8.0rc1 is now available
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list