Questions tagged [tkinter]

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

Tkinter is available for use in both version 2 and 3 of Python. For more information please see the Python website.

73 questions
5
votes
4 answers

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 sure if this is possible? The second best option…
dkuzdas
  • 59
  • 1
  • 1
  • 2
5
votes
3 answers

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' Based on a post I saw when researching this I…
Glenn
  • 237
  • 1
  • 2
  • 8
5
votes
3 answers

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 make some changes or improvements. Currently I use…
maddo7
  • 153
  • 1
  • 3
3
votes
1 answer

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". everything works fine but after running for…
shramik
  • 41
  • 1
  • 2
3
votes
3 answers

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 to "Button Pressed". I want to know how to run a…
Jamie Fernandes
  • 33
  • 1
  • 1
  • 3
3
votes
2 answers

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 auto start of tkinter python program, I also want…
Enis D.
  • 81
  • 1
  • 6
3
votes
3 answers

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 resulted in the following error condition (both IDLE and…
Tankadere
  • 31
  • 1
  • 1
  • 3
2
votes
1 answer

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 error that I don't understand: Exception…
2
votes
2 answers

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 code on a raspberry pi using an external keyboard…
gpuguy
  • 149
  • 3
  • 10
2
votes
1 answer

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 parameters (ie. frame rate, shutter, etc) and a rec…
edgarbc
  • 123
  • 1
  • 1
  • 7
2
votes
1 answer

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 call last): File "provaGUI.py", line 8, in…
flavia13
  • 33
  • 1
  • 3
  • 7
2
votes
0 answers

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. I think I am running into the problem where the…
Forrest Erickson
  • 121
  • 1
  • 1
  • 3
2
votes
0 answers

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 matplotlib and PyQt UI is too heavy and slow to plot…
J.Daniel
  • 33
  • 5
2
votes
3 answers

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] Description=GUI…
1
vote
0 answers

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 and will highlight on a button press only. This…
Davis
  • 11
  • 4
1
2 3 4 5