Python Forum
[Tkinter] Anyone know what happened to my button?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Anyone know what happened to my button?
#31
(Jun-01-2021, 01:26 AM)Larz60+ Wrote: Is this document of any value for your network?

Hi Larz60, I already reviewed the document, and everything I need I already had. The instruction that subtracts the 64-bit address, the instruction that subtracts the data, and the instruction that sends the message.

Thank you very much for the document.
I think I did not make myself understood earlier.
Reply
#32
(May-30-2021, 11:02 PM)Yoriz Wrote: I'm finding it hard to understand what you are looking for, how many sensors is it likely to go up to.
Did you want to display them in a different way maybe a list with headers
Output:
Xbee address | voltage | hour | date 0013A20040D7B01E | 30.00 | 09:18:36 | 30/05/2021 0013A200414EF124 | 25.00 | 09:18:36 | 30/05/2021 0013A20040D7AEA4 | 22.70 | 09:18:36 | 30/05/2021
And then underneath the average and the lowest

I don't really understand how the data comes in, does all the data for all sensor come in at once or do you obtain them separately?

Hello Yoriz, I would like to be able to show the information in this way. Reviewing the format of the main proposal and this one, as it has more clarity
Reply
#33
Look into using a ttk treeview widget

[Image: w_treeview_all.png]

https://docs.python.org/3/library/tkinte...l#treeview
https://tkdocs.com/tutorial/tree.html
IgnacioMora23 likes this post
Reply
#34
(Jun-04-2021, 04:57 PM)Yoriz Wrote: Look into using a ttk treeview widget

[Image: w_treeview_all.png]

https://docs.python.org/3/library/tkinte...l#treeview
https://tkdocs.com/tutorial/tree.html

Thnks Yoriz
Reply
#35
(May-29-2021, 07:36 PM)Yoriz Wrote: Try this, I can't test it so fingers crossed, I don't know if data.split(",") will be in the right order for self.form_frame.set_str_variables

Hello Yoriz, I have been trying to change the order because in the date I get the voltage and in the hour I get the time
and in the voltage I get the date haha

I try to change here
                    self.data.set_voltages( float(data.split(",")[0]))
                    self.data.set_date(data.split(",")[1])
                    self.data.set_time(data.split(",")[2])
                    self.form_frame.update()
 
But dont have results
Reply
#36
(May-30-2021, 11:02 PM)Yoriz Wrote: I'm finding it hard to understand what you are looking for, how many sensors is it likely to go up to.
Did you want to display them in a different way maybe a list with headers
Output:
Xbee address | voltage | hour | date 0013A20040D7B01E | 30.00 | 09:18:36 | 30/05/2021 0013A200414EF124 | 25.00 | 09:18:36 | 30/05/2021 0013A20040D7AEA4 | 22.70 | 09:18:36 | 30/05/2021
And then underneath the average and the lowest

I don't really understand how the data comes in, does all the data for all sensor come in at once or do you obtain them separately?

Hi Yoriz, can you help me with this.
I've been thinking that this option of a list with headers seems better to me.

If I'm not mistaken, it makes it easier for you to do it this way. I would really appreciate your help, I don't know tkinter and I need this for my graduation project, I focus more on the electrical design of the sensor and this programming has really gotten out of hand.

i think this was the last code i had. It was two months ago. Maybe I can refresh you a bit what I was looking for and I am looking to see in the interface.

I have the programming, done in python to be able to read the messages that arrive at the Xbee (an antenna), in my case I am going to use 3 antennas, which will communicate with a main antenna in the computer, this will decode the message and show it, the part of decoding the message is done automatically by XBee and the part of subtracting the information from the message is in the code. My idea is to show something like the Header that you put in this post.

That is, first that I can strip a button, which what it does is send a start message to all the Xbees, so that they can send the information every 30 seconds or so.

I would really thank you too much, you would save my life and my stress of the year.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [PySimpleGui] How to alter mouse click button of a standard submit button? skyerosebud 3 3,493 Jul-21-2019, 06:02 PM
Last Post: FullOfHelp

Forum Jump:

User Panel Messages

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