Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Python MYSQL connection does not work after 1h idle
Post: RE: Python MYSQL connection does not work after 1h...

(Oct-05-2021, 03:11 PM)tomtom Wrote: I used to have similar problem with mysql database. when I used with a windows server, I search and search but didn't find a solution on it, so what I did was to...
zazas321 General Coding Help 9 761 Oct-06-2021, 05:21 AM
    Thread: Python MYSQL connection does not work after 1h idle
Post: RE: Python MYSQL connection does not work after 1h...

(Oct-05-2021, 11:04 AM)Larz60+ Wrote: It's more likely that the problem is with MySQL and not with python. If it were python, we would have heard it from more folks but as far as I know, have not. ...
zazas321 General Coding Help 9 761 Oct-06-2021, 05:11 AM
    Thread: Python MYSQL connection does not work after 1h idle
Post: RE: Python MYSQL connection does not work after 1h...

Still need help regarding this issue
zazas321 General Coding Help 9 761 Oct-05-2021, 04:06 AM
    Thread: Python MYSQL connection does not work after 1h idle
Post: Python MYSQL connection does not work after 1h idl...

Hello. I have created MYSQL db on UBUNTU server. I have my Python script running which is connecting to that MYSQL db. mysql-connector-pythonI connect to my db using the following command: myConnectio...
zazas321 General Coding Help 9 761 Sep-30-2021, 04:55 AM
    Thread: tkinter change the text of the checkbox
Post: RE: tkinter change the text of the checkbox

I have found how to do it and its quite easy: checkbox[x].config(text="EMPTY")
zazas321 GUI 1 372 Sep-17-2021, 06:19 AM
    Thread: tkinter change the text of the checkbox
Post: tkinter change the text of the checkbox

Hello. I would like to know whether it is possible to change the text of the checkbox in the middle of the program. Please see the following code: import tkinter as tk active_devices = ["device1","...
zazas321 GUI 1 372 Sep-17-2021, 05:14 AM
    Thread: Program stuck at mysql.connector.connect
Post: Program stuck at mysql.connector.connect

Hello. I have Raspberry PI 4 and have been using MYSQL on it for a while without any issues. I have decided to dedicate a standalone linux server just to handle my services and seperate them from my R...
zazas321 General Coding Help 1 452 Jul-29-2021, 10:49 AM
    Thread: Program stuck at mysql.connector.connect
Post: Program stuck at mysql.connector.connect but works...

Hello. I have Raspberry PI 4 and have been using MYSQL on it for a while without any issues. I have decided to dedicate a standalone linux server just to handle my services and seperate them from my R...
zazas321 General Coding Help 1 452 Jul-29-2021, 08:55 AM
    Thread: How to redraw an existing image to a different image TkInter
Post: RE: How to redraw an existing image to a different...

(Jul-08-2021, 11:17 AM)Larz60+ Wrote: Your solution is not correct. I think self.tick_img.config(img_red_tick) or self.tick_img.config(img_green_tick) is the proper way. you can keep track of ...
zazas321 GUI 6 981 Jul-08-2021, 11:25 AM
    Thread: How to redraw an existing image to a different image TkInter
Post: How to redraw an existing image to a different ima...

Hello. I have a tkinter application running and I am trying to come up with a solution. I will explain the scenario briefly: On my tkinter application, there is a "toggle" button that toggles the sen...
zazas321 GUI 6 981 Jul-08-2021, 10:51 AM
    Thread: Installing Python3 on MacOS using brew
Post: RE: Installing Python3 on MacOS using brew

I used bash. And I didint do any setup for that. I have simply followed the instructions from the website posted installing Python using brew. The initial problem was probably due to my old Python ins...
zazas321 General Coding Help 5 1,391 May-28-2021, 04:19 AM
    Thread: Installing Python3 on MacOS using brew
Post: RE: Installing Python3 on MacOS using brew

I have managed to move forward with my issue by following the suggestions in this post: https://stackoverflow.com/questions/3600...stallation Now I am able to get the information by calling python -...
zazas321 General Coding Help 5 1,391 May-27-2021, 11:02 AM
    Thread: Installing Python3 on MacOS using brew
Post: Installing Python3 on MacOS using brew

Hello, I am trying to install python3 I have followed this guide: https://programwithus.com/learn/python/i...ython3-mac After using the following command: brew install python3The result is as followi...
zazas321 General Coding Help 5 1,391 May-27-2021, 10:53 AM
    Thread: TKinter restarting the mainloop when button pressed
Post: RE: TKinter restarting the mainloop when button pr...

The task is quite complex and is based on pick to light idea. The scans a barcode and starts a task. I then need to check various states of remote/devices, read database and etc.. The started task is ...
zazas321 GUI 7 4,237 Jan-26-2021, 06:38 AM
    Thread: TKinter restarting the mainloop when button pressed
Post: RE: TKinter restarting the mainloop when button pr...

I have found a way how to go back to idle state with the following code: import tkinter as tk from tkinter import Button,Entry,Canvas,Label,ttk import concurrent.futures class Application(tk.Fram...
zazas321 GUI 7 4,237 Jan-25-2021, 11:01 AM
    Thread: TKinter restarting the mainloop when button pressed
Post: RE: TKinter restarting the mainloop when button pr...

(Jan-25-2021, 07:13 AM)deanhystad Wrote: A GUI application runs all the time, though most of the time it is doing nothing but waiting for the user to click a mouse button or press a key. The window...
zazas321 GUI 7 4,237 Jan-25-2021, 07:59 AM
    Thread: TKinter restarting the mainloop when button pressed
Post: RE: TKinter restarting the mainloop when button pr...

(Jan-22-2021, 12:31 PM)deanhystad Wrote: This sounds like a bad idea. What are you trying to achieve? Why is that a bad idea? I simply need to be able to stop an operation whilst is running. I am d...
zazas321 GUI 7 4,237 Jan-25-2021, 05:31 AM
    Thread: TKinter restarting the mainloop when button pressed
Post: TKinter restarting the mainloop when button presse...

Hello. I have a complex program running in Python and I want to be able to interrupt it and restart the mainloop at any time I want. I have made a simplified example of my program which illustrates m...
zazas321 GUI 7 4,237 Jan-22-2021, 08:44 AM
    Thread: Modbus-tk library catching modbus-tk exception
Post: Modbus-tk library catching modbus-tk exception

Hey. I am working with raspberry PI and modbus. Raspberry PI is configured as master and I have multiple ESP32 devices configured as slave devices. I am not entirely sure how modbus-tk library works ...
zazas321 General Coding Help 1 689 Nov-10-2020, 09:51 AM
    Thread: Understanding Raspberry PI RTS/CTS flow control
Post: RE: Understanding Raspberry PI RTS/CTS flow contro...

After activating flow control using this guide I have checked the gpio tree and it does not appear to have any affect: https://ibb.co/6NsKZPT
zazas321 General Coding Help 2 1,258 Oct-30-2020, 09:55 AM

User Panel Messages

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