Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: TKinter Remove Button Frame
Post: RE: TKinter Remove Button Frame

rob101 - Thanks, that would be great actually. I am all for anything you want to share with me. There is plenty to learn for me in Python and I really enjoy the GUI stuff. (Jan-16-2024, 04:54 PM)r...
Nu2Python GUI 8 981 Jan-16-2024, 05:54 PM
    Thread: TKinter Remove Button Frame
Post: RE: TKinter Remove Button Frame

Thanks 'deanhystad' - I played around with this and seems to be working ok. I wish creating rounded corner buttons was easier, but when I looked into that it seems way to complicated to bother with....
Nu2Python GUI 8 981 Jan-16-2024, 04:49 PM
    Thread: TKinter Remove Button Frame
Post: TKinter Remove Button Frame

Hi All - How can I remove the button frame in my code? I have tried a few examples I found, but have had no luck. I see one argument example for 'borderwidth=0' but does not seem to change anything. ...
Nu2Python GUI 8 981 Jan-15-2024, 06:00 AM
  Smile Thread: TKinter Not Executing
Post: RE: TKinter Not Executing

Yoriz... thanks so much for the great explanation on this. I am still quite new with Python, so this is a great learning experience. This seems to be working perfectly and I do not notice any freezing...
Nu2Python GUI 3 1,302 Jan-06-2023, 03:56 PM
    Thread: TKinter Not Executing
Post: TKinter Not Executing

Hi all... I am not sure why, but this code is no longer executing the GUI like it once did. The code runs fine, the 'Print' line shows up fine in the terminal, the data gets logged from the sensor in ...
Nu2Python GUI 3 1,302 Jan-05-2023, 10:24 PM
    Thread: TKinter JSON Key Error
Post: RE: TKinter JSON Key Error

** Ok, I think I have figured out some of it after making myself a bit crazy. I was actually trying to read the device information from the wrong section. This is a JSON file output from a SONOFF SWI...
Nu2Python GUI 4 1,372 Jan-02-2023, 10:15 PM
    Thread: TKinter JSON Key Error
Post: RE: TKinter JSON Key Error

(Jan-02-2023, 06:32 AM)deanhystad Wrote: You are not working with json, you are working with lists and dictionaries. json.loads() creates a dictionary or a list. Do you know how lists and dictiona...
Nu2Python GUI 4 1,372 Jan-02-2023, 06:58 PM
    Thread: TKinter JSON Key Error
Post: TKinter JSON Key Error

Hi All, I am hoping someone can tell me why this error is happening with my line: x = json.loads(sonoff01.text) status = x['relays']This code 'was' working fine, but I don't understand enough about j...
Nu2Python GUI 4 1,372 Jan-02-2023, 06:09 AM
    Thread: tkinter toggle buttons not working
Post: RE: tkinter toggle buttons not working

ok deanhystad, here is my newest code that I slapped together... it is messy and I know that already. It does work, and it does tell me what the current state is of the relay and starts the window wit...
Nu2Python GUI 26 6,994 Jan-23-2022, 06:49 PM
    Thread: tkinter toggle buttons not working
Post: RE: tkinter toggle buttons not working

(Jan-20-2022, 06:04 PM)deanhystad Wrote: No. Do this on your own. Try writing the program without the buttons and the relays. Make a label that displays the time and another that displays the tem...
Nu2Python GUI 26 6,994 Jan-20-2022, 06:47 PM
    Thread: tkinter toggle buttons not working
Post: RE: tkinter toggle buttons not working

(Jan-20-2022, 05:27 PM)deanhystad Wrote: When you make a widget you need to specify the parent window. That is not done here: self.label = Label(text="", fg="Black", font=("Helvetica", 12))and a fe...
Nu2Python GUI 26 6,994 Jan-20-2022, 05:53 PM
    Thread: tkinter toggle buttons not working
Post: RE: tkinter toggle buttons not working

deanhystad, here is my current code. please let me know how this looks and if it looks like the correct way. Thanks import tkinter as tk from tkinter import * from tkinter import messagebox import r...
Nu2Python GUI 26 6,994 Jan-19-2022, 11:14 PM
    Thread: File not appending
Post: RE: File not appending

Thanks Larz60+ I will give that a try. The issue "seems" to be that once it doesn't write the first time, it just continues that way until I completely delete the file and let it start over. It was b...
Nu2Python General Coding Help 3 1,366 Jan-18-2022, 08:36 PM
    Thread: tkinter toggle buttons not working
Post: RE: tkinter toggle buttons not working

(Jan-18-2022, 12:05 PM)deanhystad Wrote: Indentation in line 64 pushes the for loop outside the scope of the getTemp() method.Look st your update clock method. How often is getTemp called. Think b...
Nu2Python GUI 26 6,994 Jan-18-2022, 04:00 PM
    Thread: File not appending
Post: File not appending

Hi All, I have been testing a small program for a little while now and recently noticed that the program was not logging any data to my text file. For some reason, if I start out with deleting the fi...
Nu2Python General Coding Help 3 1,366 Jan-18-2022, 03:51 PM
    Thread: tkinter toggle buttons not working
Post: RE: tkinter toggle buttons not working

[quote="deanhystad" pid='152246' dateline='1642473379'] This is a dictionary as a json string. You could convert the string to a dictionary using json.loads(). Then you could use the TempUnit and al...
Nu2Python GUI 26 6,994 Jan-18-2022, 03:02 AM
    Thread: tkinter toggle buttons not working
Post: RE: tkinter toggle buttons not working

(Jan-17-2022, 11:20 PM)deanhystad Wrote: Use tkinter .after(milliseconds, func) to call a function sometime in the future. I got this formatted pretty well so far... Now I am trying to format the st...
Nu2Python GUI 26 6,994 Jan-18-2022, 12:15 AM
    Thread: tkinter toggle buttons not working
Post: RE: tkinter toggle buttons not working

Ok, so I got it to show up finally. I think it must have been hiding behind the button (oops!). Now what I want to do is update the label info with the information sent back from the Sonoff switch. ...
Nu2Python GUI 26 6,994 Jan-17-2022, 11:07 PM
    Thread: tkinter toggle buttons not working
Post: RE: tkinter toggle buttons not working

Hi deanhystad (or other great helpers available). With this code you supplied, at what portion of it can I add things like labels? For instance I want to add a clock to my window. I also plan to add ...
Nu2Python GUI 26 6,994 Jan-17-2022, 06:45 PM
    Thread: tkinter toggle buttons not working
Post: RE: tkinter toggle buttons not working

Thanks deanhystad... this is working great. My search continues for getting the actual status of the relays. Thanks again for your time on this, I really appreciate it.
Nu2Python GUI 26 6,994 Jan-16-2022, 05:20 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020