Questions tagged [tkinter]

Tkinter is the Python binding for the Tk graphical user interface (GUI) widget library.

Filter by
Sorted by
Tagged with
0
votes
1answer
17 views

Raspberry pi cannot run an executable file created in Python

I' m new to Raspberry Pi and I created a file with the code: from tkinter import * from PIL import Image, ImageTk import board import busio from adafruit_as726x import AS726x_I2C import time import ...
0
votes
1answer
22 views

Python tkinder reset button code fails on third attempt

I am trying to trigger a timer when there is audio and stop the timer when the audio is lower than a set value. There is a reset button that will reset the timer back to zero. The reset button works ...
1
vote
0answers
27 views

Tkinter Script Autostart

I have a problem with loading the Tkinter script at every reboot of the Raspberry. The script is executable and starts from a .desktop file. No problem with it when the Raspbian OS is booted (I guess ...
0
votes
1answer
44 views

Problem opening tkinter script via html page

I am working on this project where I have Raspberry Pi 3 with full Raspbian (with GUI) connected to a 7" screen. I created a Python 3 script: // gui.py import tkinter as tk root = tk.Tk() root....
0
votes
1answer
58 views

How to implement serial event detection for request /response operation with Tkinter

I am working an application where I read two sensor values in every 200ms and show values in Tkinter window . My issue is in my application I have to response request from master PC through serial ...
0
votes
0answers
34 views

how can i use TCP/IP communication as interrupt between raspberry pi and PC?

I am working in a project where I interfaces two rotary encoder with Raspberry pi and at same time read two sensor values and shown them on tkinter window and now as per project I need to send these ...
2
votes
3answers
230 views

Help launching Tkinter on boot Pi 3

I tried the example in a Raspberry Pi SE question, creating a systemd ".service" in the past and it worked flawlessly, but now I'm running Tkinter with python3 on a raspberry pi3. [Unit] ...
-2
votes
2answers
540 views

Autostart a program at boot up?

I want to autostart a Python script that starts a Tkinter GUI at boot up. The working terminal command to start the script is python3 /home/pi/Documents/slincam/slincam_menu.py. I added this command ...
4
votes
3answers
529 views

Start python script on pi through putty so it still runs after closing putty

I want to build a water dispanser using a raspberry pi. The pi is attached to a touch screen. Further, I made a python script to control everything. From time to time, I want to adjust the script to ...
1
vote
0answers
75 views

GUI with tkinter, 2 buttons touched together

Have written a GUI (touchscreen) for my Pi in Python 3 with tkinter. It works in fullscreen. I do not want to have an extra button for shutting down the Pi but when I push 2 buttons together. How can ...
0
votes
0answers
17 views

Tkinter Problem with Show an Update Value

Well I dont know what i must to use to show the degree of my robot arm for each time where i have pressed a button from my keyboard. More specific the code is fine in terminal, because when i run the ...
-1
votes
2answers
272 views

TKinter install settings : “module 're' has no attribute 'compile'” on import

If I run a "intro to TKinter" program in Thonny, it runs. From the command line or in Mu it gives this: ( Pi3 b, Buster, fresh apt update - install... ) ..$ python3 code/tkinter_x.py Traceback (...
1
vote
1answer
51 views

Python Tkinder Button

i have a promblem with GUI Tkinter, when i click the button of my gui enviroment the arm of my robot dont response more specific call the function but steal remaning in 0 degre``es from the other my ...
0
votes
1answer
58 views

why raspberry pi 3 fail to read 1000 p/r rotary encoder while my 8 bit nuvoton micro controller did that properly?

I am using LS s40-6-1000ZT(H) 1000 p/r rotary encoder for my project with raspberry pi 3,but raspberry not working properly as per encoder specification(i.e not counting event properly).What could be ...
0
votes
0answers
52 views

Multi process loop not working as expected

I am working on project where i interfaced two MCP4725 dac with my Pi for sending set point to my two PID device i.e (rpm pid and torque pid) at same time .So i used multi threading concept but i am ...
0
votes
0answers
466 views

Tkinter no display error

I'm using Tkinter and running into the next error: Traceback (most recent call last): File "TKtest.py", line 3, in <module> master = tk.Tk() File "/usr/lib/python3.7/tkinter/__init__.py", ...
0
votes
0answers
739 views

Error when creating Python GUI using Tkinter: “no display name and no $DISPLAY environment variable”

last few days I've been working to create a GUI using Tkinter This morning my code still worked, but now it crashed with said error: Traceback (most recent call last): File "TKtest.py", line 3, in &...
1
vote
2answers
788 views

Tkinter not running on updated python

So, I'm trying to use a project, that uses tkinter on my Raspberry Pi but I have an issue. I needed an updated version of Python, so I updated it to 3.7.4, however, when I try to import tkinter, it ...
1
vote
1answer
1k views

Run python script on Raspbian desktop through ssh access

I have a RaspberryPi with a PiTFT 3.5 display connected. The display is configured to mirror the HDMI output and the Pi is running Raspbian desktop. Now what I am trying to do is to run a python ...
-1
votes
1answer
925 views

Need a large (20 inch +) touch screen monitor Raspberry Pi 3b+/4b running Debian Buster

I'm looking for a large (20 inch +) touch screen monitor for Raspberry Pi 3b+/4b running Debian Buster. We tried the ViewSonic TD2230 but the driver support is lacking; Tkinter misses about 35% of the ...
1
vote
1answer
128 views

a python GUI application to display some measured value (with Raspberry Pi)

I am developing a GUI (with python tkinter) application for a measurement system with Raspberry pi. I made the GUI and the code to do the measurement. But my question is how to link them together. ...
-1
votes
2answers
3k views

RASPBERRY PI Error Python GUI : “no display name and no $DISPLAY environment variable”

Hi guys I want to create a basic GUI with TKinter. This is my code from tkinter import* import tkinter.font win =Tk() win.title("Test") myFont = tkinter.font.Font( family = 'Helvetica', size = 12, ...
1
vote
2answers
2k views

Run tkinter gui on remote machine connected by SSH?

I would like to run a tkinter-generated GUI generated on a Raspberry Pi while connected via SSH on a Mac. I have tried several suggestions (e.g. https://stackoverflow.com/questions/37604289/tkinter-...
4
votes
3answers
6k views

Launch a GUI Tkinter program on boot

I am trying to auto launch a Tkinter/Python program when the Raspberry Pi boots up. Ideally I would like to boot the Pi into the console and then launch a GUI Tkinter Python program. In testing – not ...
0
votes
1answer
621 views

grab_set issue with tkinter toplevel window

I'm having an issue with the grab_set command when opening a toplevel window on my Pi. I'm using a grab_set to disable the screen below the toplevel and releasing it on close of the window. I doesn't ...
1
vote
0answers
60 views

GUI Button Highlight [closed]

I'm having an issue with the highlight of the buttons on a GUI that I created with tkinter. When I run the GUI on my windows machine and the cursor is over the button, the button is not highlighted ...
0
votes
0answers
185 views

I want to toggle a button from GUI tkinter and display a counts from GPIO

I want to toggle a button from GUI tkinter and display a counts from GPIO. Here I have a counter system code: from gpiozero import * from time import sleep #####GPIO input########## led = LED(26) ...
1
vote
1answer
20 views

Opening a new form

I have an application that I am using a keypad with. I'm using the pad4pi library. On the main form I have a button that opens a second form. The second form is its own class name nform. I have ...
1
vote
1answer
2k views

No module named '_tkinter' on python3 in Raspbian

I have installed tkinter on my Raspberry Pi that is running Raspbian. It is installed for both python2 and python3. However while importing it in python3, it shows me an error: >>> import ...
0
votes
1answer
177 views

How to display a tkinter window while using a push hardware button to capture images?

I have a project in which involves capturing of images. I have to display a UI while capturing an image if a button is pressed. This is the code. def create_window(self): t = tk.Toplevel(self) ...
0
votes
0answers
275 views

How to toggle a push button to capture an image and insert a string in a text widget?

I have a project that involves capturing an image using a push button and after I use image processing I can convert it into a string. How do I make the string display the tkinter text widget while ...
0
votes
1answer
381 views

3.5" touchscreen, tkinter output only?

I am currently working on a project for which I am using a 3.5" touchscreen as an output for some buttons. I can get it to be used as the output for the whole GUI, but that leads to the display being ...
2
votes
1answer
222 views

Attribute and Type Error using Button class in Tkinter/GPIO Zero combination

I'm new to programming and I'm trying to write a simple program to change the blink rate of an LED using a GUI. When I try to run this on my RaspberryPi 2B running Raspbian, I get the following ...
0
votes
1answer
627 views

Tkinter Push Button with Virtual Buttons

So I'm working on a project which requires both limit switch inputs and relay control outputs. I'm using an optocoupled relay so the output from the Pi's GPIO is more than adequate to run them. It's ...
0
votes
2answers
587 views

Automatic shortcut execution on boot

I want to achieve following: run my GUI (made in Tkinter interface) application automatically as I boot the RPi (i.e. no desktop screen loading). But I want to be able kill the application so I can ...
0
votes
1answer
310 views

Preventing user from exiting Tkinter GUI program on Raspbian

I am creating a kiosk-mode program for Raspberry Pi, using Raspbian +Python/Tkinter. I need to have keyboard attached, so the user is able to enter a password, but I need to prevent the user from ...
0
votes
1answer
563 views

Thread not working on Tkinter

I have created this program, but the function does not get called. I'm learning how to use threads. Any suggestion is well appreciated. #!/usr/bin/env python3 import tkinter as tk from threading ...
1
vote
1answer
5k views

How to make a non-blocking delay on Tkinter?

The following code is a stopwatch on Tkinter which has GPIO involved. I tried adding time.sleep for debouncing the button, but it also delays the stopwatch execution. Makes sense. But I just started ...
0
votes
1answer
173 views

Tkinterhtml fails to run on raspbian. Python 3.7

Tkinterhtml fails to run on Raspbian. Python 3.7 _tkinter.TclError: couldn't load file "/usr/local/lib/python3.7/site-packages/tkinterhtml/tkhtml/Linux/32-bit/Tkhtml/libTkhtml3.0.so": /usr/local/lib/...
1
vote
0answers
171 views

Having trouble on one of the raspi official projects “getting started with GUIs”

I have raspi 3, and working on "Getting started with GUIs". I am currently on this page (https://projects.raspberrypi.org/en/projects/getting-started-with-guis/11) and having trouble at the line ...
-1
votes
1answer
387 views

Start Python script with image display (Start Python Skript mit Bilderanzeige)

I want to build a photo box with a Raspberry Pi 3B + (Raspbian). The Python code works, but the autostart does not work: I've already tried to write the file in crontab, rc.local, bash.rc, a desktop ...
-1
votes
1answer
2k views

How to remove the kill prompt of a python script?

I have a python script that uses Tkinter, the quit button I have implemented pops up a prompt on the python shell after pressing it, which it didn't do on Windows when I wrote the code and tested it. ...
0
votes
1answer
279 views

Geany IDE won't show the graphics window when I run my Tkinter script

I am trying to switch to Geany IDE for coding Python on the Pi. ** Note, In an earlier question, I made the mistake of obscuring this question by combining it with another one... so this question ...
0
votes
1answer
279 views

I'm wanting to get user input from a screen, but I can't have any buttons

I'm developing an python3 application that only uses a handheld scanner for input. I need to prompt the user for input and want to use a nice window to do it. When I look at tkinter, it appears that ...
0
votes
0answers
658 views

Raspberry Pi + Mcp2515

I used Raspberry Pi + Mcp2515 with CAN bus. In my code, When I lost request it will locked,then GUI will not working. msg = can.Message(arbitration_id=0x000601, data=point, extended_id=false) bus....
0
votes
0answers
1k views

What could I do to optimize rendering time of image with tkinter?

I've been working on a project using Python 2.7 and TKinter which needs to render 25 images per second based on GPIO inputs. I have working code on my Ubuntu laptop, which is able to render an image ...
1
vote
2answers
7k views

Virtual on-screen keyboard for raspberry pi touch screen

The following is simple code that accepts a line of text from a user: from tkinter import * from tkinter import ttk root= Tk() entry= ttk.Entry(root, width=30) entry.pack() I am running this ...
0
votes
1answer
769 views

How do you put the serial values(from arduino) to a specific grid in Tkinter? (Python 2.7)

I tried to put values in the grids from a string. But the values are not showing or updating. How do you put serial values(from arduino) to a specific grid in Tkinter? When I run the code, no values ...
2
votes
1answer
9k views

Is there a python picam gui out there?

Before starting to code a new GUI in tkinter (or something similar) for picam, I was wondering if there is something already available. What I am looking for is a simple GUI to set the picam ...
2
votes
1answer
9k views

tkinter.TclError: couldn't connect to display

i'm using raspbian Jessie on the raspberry PI3, when I try to run my code, that is a GUI written in Python, it gives me this error: erle@erle-brain:~ $ sudo python provaGUI.py Traceback (most recent ...