Python Forum
[Tkinter] Help me,send message via tkinter - 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: [Tkinter] Help me,send message via tkinter (/thread-18386.html)



Help me,send message via tkinter - chano - May-15-2019

Hello boys,
i have a one question,
is it possible tkinter to send email after click 10 times on button, i want when button is push 10 times, at 10th press to send mesage "" water is low "". water is over and I need to go to charge water.This is a button for water dispenser.the button is swich with relay.
Thank you very much for your answers.


RE: Help me,send message via tkinter - Yoriz - May-15-2019

Create a variable that keeps a count of button clicks, when the count reaches 10 send the message.


RE: Help me,send message via tkinter - chano - May-15-2019

(May-15-2019, 08:14 AM)Yoriz Wrote: Create a variable that keeps a count of button clicks, when the count reaches 10 send the message.
Thank for your help but i can't make this,i am a beginner unfortunately ,i don't now what code write on button.
Thank you very much for your answer.