Python Forum
Help on drawing a shape and slider - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: Help on drawing a shape and slider (/thread-20588.html)

Pages: 1 2


RE: Help on drawing a shape and slider - mnh001 - Aug-22-2019

(Aug-22-2019, 07:29 PM)Denni Wrote: Well try this answer - sorry Tkinter is not my area of expertise ;)

https://stackoverflow.com/questions/3963329/how-can-i-set-the-default-value-of-my-tkinter-scale-widget-slider-to-100

No, that didn't work either. I've tried using the set method after the line with the scale parameters but it still starts with 0 and goes up in increments of 10. Thanks for trying though. I've only been learning Python for 4-5 days now and some parts come easy and others not so much.


RE: Help on drawing a shape and slider - Denni - Aug-22-2019

Oh I perfectly understand been using pyqt5 only since about May of this year and it had things that I thought might be hard that were easy and things that I thought would be easy that were rather difficult. But all-in-all it is still based on python and that I understood stepping into my current project. However the biggest issue that I have seen on most forums is that folks just do not understand some of the more basic elements of writing good programs. Having a program that is easily read, manipulated and such months or years down the road is of great importance. Learning to do that from get go will help every programmer later on to make their programs more viable pieces of reusable code for themselves and others perhaps if they are so inclined.

Had your question been a pure python question I would have been able to help you but yours is a - how does tkinter work and that set of libraries I have not used having chosen the pyqt5 path instead.


RE: Help on drawing a shape and slider - mnh001 - Aug-22-2019

Well, perhaps someone else out there will know the answer. Till then I just keep on truckin'.