Questions tagged [tkinter]

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

Filter by
Sorted by
Tagged with
-2
votes
0answers
17 views

Refresh Tkinter GUI

I'm using tkinter and trying to make a gui that will display data and refresh, however the master.after function is not working as intended. Wondering if anyone can tell me why. My goal is to have the ...
0
votes
0answers
14 views

X Error of failed request: BadAlloc (insufficient resources for operation)

I'm running a GUI programming (Tkinter) based application program for reverse vending Machine on raspberry pi with raspbian 8 jessie OS. The program takes user input as language selection, mobile ...
0
votes
0answers
16 views

Tkinter and Live Bluetooth Data [closed]

I am creating a 3x3 grid through Tkinter and was trying to get the bluetooth data displayed. Whenever I run the code, the data will show in shell, but the Tkinter window wont open. I am new to tkinter ...
1
vote
2answers
42 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
29 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
61 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 ...
0
votes
0answers
111 views

Simulate a mouse click in python tkinter

I have a tkinter GUI running on a Pi 3B+ with a 5" tft touch screen display. I am writing my own touch screen driver. The GUI works when I mouse click on a button that is bound to Button-1. self....
1
vote
1answer
42 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
1answer
129 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
95 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
703 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
0answers
130 views

How to assign the value of a button to an input with tkinter

I am working on a raspberry pi where I want to make a keyboard with tkinter and I have encountered a problem, I do not know how to write in the entry where the cursor is. what happens in this code is ...
0
votes
0answers
132 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
26 views

GUI Button Highlight

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
65 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
17 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 ...
0
votes
0answers
15 views

x.overrideredirect not working on raspberry pi

On my pi, I was trying to make a simple clock in tkinter (which works.) But, I can't use overrideredirect. The whole program works fine on windows. Any help is greatly appreciated!
1
vote
1answer
700 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
124 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
189 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
87 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
68 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
137 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
1answer
182 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
161 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
221 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
2k 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
92 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
121 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
88 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
1k 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
119 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
217 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
534 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
640 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
1answer
6k 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
426 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
5k 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 ...
1
vote
1answer
5k 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 ...
1
vote
2answers
3k views

No module named '_tkinter' in DEBIAN

I have some problems with tkinter. I want to use it with python 2.7.9 or python 3.4 with DEBIAN but it give me this error in both cases: Python 3.4.3 (default, Dec 1 2017, 16:25:43) [GCC 4.9.2] on ...
1
vote
0answers
294 views

How to make omxplayer not always on top?

I am using Adafruit's Video Looper to loop on a video using python script and omxplayer. Although, I made a few modifications. I want a popup window to appear when a GPIO button is pressed. I have ...
2
votes
0answers
6k views

Want to Read COM Port Data and Write into TKinter Text Window

Using Python3, I want to read data on a serial port and display it into a tkinter GUI text window (not only the shell). Pretend I am trying to make the equivalent of a serial port character display. ...
0
votes
1answer
415 views

Custom menu GUI

I am trying to make a retro gaming console with the Pi Zero W. The first thing I want to happen is a custom menu screen show up. I know how to make a custom Tkinter GUI but I want it to show up when ...
1
vote
1answer
462 views

Plotting information from analog-to-digital conversion

I am reading an analog signal in volts (0 - 1 V) using an adafruit ADA1115 chip. I want to save the data with at least 100 sps and plot it real time at the same time (plotting can be done at 1-10 Hz). ...
1
vote
0answers
936 views

raspi+ADC realtime plotting

I recently succeeded in receiving ADC Data from ADS7851 through SPI communication. Now I'm working on plotting those voltage data and also fft of them. I've done some research, and found out that ...
2
votes
1answer
355 views

Raspberry pi freezes after 20 minutes of use

using tkinter i have made a GUI in which a video plays continuously in a loop until the ultrasonic sensor detects a person in front of it. when a person is detected it displays a messages"hi..welcome"....
4
votes
3answers
6k views

No module named 'ImageTk'

I am learning tkinter and trying to place an image on a Button, but I cannot get past the import. My code: from tkinter import * from PIL import Image, ImageTk The error: No module named 'ImageTk' ...
0
votes
1answer
324 views

Tkinter application window in front of Chromium in Kiosk mode

On my Raspberry Pi I have created a tkinter application with one button and configured Chromium to start in kiosk mode. In my python application I set the following: root.lift() root.wm_attributes("...
1
vote
0answers
150 views

Issue calling commands behind Tkinter

I'm trying to get an audio playback system on a Raspberry Pi to play back a selected sample in Python when the GPIO detects an input from an Arduino, (stepped down to 3.3V). Here a simplified section ...
2
votes
3answers
4k views

How to run a GUI Interface on a Remote Machine

I have written a Python Tkinter program which uses buttons to control a Motor which is linked to the GPIO pins, It also displays any changes as a tkiner label e.g Button pressed will change the label ...