Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tkinter]

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

0
votes
0answers
4 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
77 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
28 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
33 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
0answers
14 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
25 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
41 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
66 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
67 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 ...
-1
votes
1answer
94 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 ...
0
votes
1answer
361 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
50 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
75 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 ...
0
votes
1answer
55 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
520 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
0answers
68 views

ModuleNotFoundError: No module named 'maze_support' “PAGE” tkinter error

Hello I'm trying to create a tkinter GUI for sending a picture througt email. I'm trying to use tkinter GUI generator named: PAGE. I created a good looking project and tried to run it. Sadly there ...
0
votes
1answer
84 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
184 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
388 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
394 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 ...
0
votes
0answers
387 views

Combining Opencv and Tkinter

I am new to python and I am stuck with this problem. I want to create a window that would have an entry box for threshold, which would then be used to make a binary image from camera. The binary image ...
1
vote
1answer
4k 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
250 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
3k 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 ...
0
votes
0answers
79 views

RPi Zero W, Photobooth Python2 Tkinter - Keeps Crashing/Rebooting Pi when code is run

I'm having a bit of an issue with my raspberry pi rebooting when I run this code. IT also seems to crash at different points.. sometimes when writing the picture file, sometimes when taking picture, ...
1
vote
1answer
3k 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
2k 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
214 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
4k 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
348 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
331 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
781 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 ...
1
vote
1answer
267 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"....
3
votes
2answers
4k 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
0answers
2k views

Multi-threading Python GUI (TkInter) Whilst Listening for User Input from /dev/stdin

I'm writing a Python script with a GUI (TkInter) which listens for an RFID token being presented (using a USB reader which emulates keyboard input into a Raspberry Pi 3.). I've previously been helped ...
0
votes
1answer
268 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
131 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
3k 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 ...
1
vote
0answers
199 views

Tkinter auto start issue

I'm building a kiosk with raspberry pi 3. And using Raspbian Jessie with Pixel. My python program is using GPIOs, Raspi camera, OpenCV and Tkinter for GUI building. I'm trying to auto start my python ...
2
votes
2answers
2k views

Hiding boot screen for kiosk usage

I'm developing a kiosk with raspberry pi. What I want to do is, when my customer power up the kiosk, it should start directly from the tkinter GUI that I designed. Even if I still have problems with ...
1
vote
1answer
3k views

I want to toggle a pushbutton and display it on tkinter GUI

I want to toggle a pushbutton and show its changes on a label using tkinter. If I press the button it shows "on" on the label and when I press again it shows "off" on the label So I try these codes ...
1
vote
3answers
13k views

tkinter on Raspberry Pi; Raspbian/Jessie Python 3.4

I installed tkinter using the following request: sudo apt-get install python3-tk When I try to import the module using: #!/usr/local/lib/python3.4 import tkinter as tk The above two lines ...