Reading data files with ctk is pure frustration #2020
Replies: 3 comments 3 replies
-
You've not really explained what you want to do or provided a minimum example. I've no idea what you even mean by "but logically, CTK is broken." It has worked fine for all of the projects I've used it on. |
Beta Was this translation helpful? Give feedback.
-
Do you want "yay" to appear as the default text in the ctkentry widget, or do you only want it to appear after the user has clicked the "get" button? |
Beta Was this translation helpful? Give feedback.
-
Ok so here is one solution that requires a small change of your code; Note the following line: self.frame = Frame1(self, word) I don't know how experienced with python you are. If not very, then I would recommend to have a look at some material out there on classes and objects/object orientated programming to understand why that works. Hope this helps!
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have written Python script to read a data file using a given structure reference and index file and it works fine running from command prompt.
As soon as I try to apply a decent UI like ctk it all turns to crap. Now the data interpretation is corrupted. I simply copy pasted the extraction method into the ctk script.
My 2 front teeth for a decent python UI that can read data files as well as a bad UI does - a UI shouldn't affect the way a script reads a file.
Using classes makes things even worse, - this is supposed to make things easier!
Maybe I'm just green behind the ears. but logically, CTK is broken.
Beta Was this translation helpful? Give feedback.
All reactions