0
votes
1answer
16 views

python Tkinter, Queue, Threading, gives out of stack space error

I am trying to connect raw_input() to a Tkinter gui, by using Queus and Threading. Here is my code: import Tkinter import time import threading import Queue class UI(Tkinter.Frame): def ...
3
votes
1answer
31 views

Python 3.3 doesn't work properly on OS X Maverics

I installed python 3.3 in my new Macboook Pro Retina Late 2013 with OS X Maverics, when I tried to execute IDLE, the window appears and disappear instantly. When I tried to do the same from the ...
0
votes
1answer
18 views

How can i get the GUI to accept my input

I also need help getting my variable named "guess" to work.I made it a paramater also in hopes of getting it to work.I have to make a guess my number program with a gui interface the code i have so ...
0
votes
0answers
20 views

Python 3, tkinter, how do I display a list of strings, one by one, under each other

So I have a list of strings. Something like this Answers=["House - Maja","Boat - Paat","Plane - Lennuk"] etc. I want to display them in a tkinter window, the list lenght is not a constant. I can't ...
0
votes
0answers
13 views

Python Connect 4 Tkinter GUI

I am trying to implement a GUI for my Connect 4 GUI, I have been trying for days and I can't seem to figure it out. Can anyone give some ideas or a nudge in the right direction? I need to use mouse ...
0
votes
1answer
15 views

How to automatically insert several tkinter items in Tk() window using classes

I apologize in advance if this is a stupid simple question, but i am really bad att python classes and can't seem to get it to work! Here is my code: from tkinter import * a = Tk() class ...
0
votes
1answer
26 views

Tkinter GUI canvas

I am working on a Lego Mindstorms project where we create a GUI that can be used to control the robot. The thing I need to do is to create something that shows the robots position after every move. I ...
2
votes
1answer
20 views

How do I validate a button in tkinter so that the function is only called once?

When I press the 'Enter' button more than once then the text field will keep showing but I want it so that once I have entered my name and pressed the button the button will deactivate. How do I do ...
0
votes
1answer
33 views

Python 3 Tkinter - Disabling buttons out of order code

Currently I am attempting to disable certain buttons in my UI when a certain condition is met. The only problem is I can only change the state of a button after it is created. I made a Disabler class ...
0
votes
1answer
17 views

Tkinter embed Graphical subprocess

I am trying to execute a compiled Pygame Graphical application from a Tkinter interface. However, I want the pygame interface to launch into a 800x600 Graphical frame. In the same root window below ...
0
votes
1answer
22 views

how to stack two widgets and switch between them?

I want to script two widgets which would be stacked and I would switch from one to another with a key. Each widget would be a Frame containing several Labels. I have the following code so far (only ...
-4
votes
1answer
33 views

How to add questions and a scoring system to my quiz?

For each question in my quiz I would like to add a Yes/No question where the user can select either yes or no and then press 'Enter'. At this point I would like the program to add 1 to the score if ...
1
vote
2answers
29 views

Edit contents of new Toplevel window

I am trying to understand the Toplevel widget in Tkinter. I want to create a window with a button which opens a new window with contents in it upon clicking. I have this, which opens a new windown ...
1
vote
1answer
31 views

Python tkinter start and stop loop?

Ive been trying to make a program with 2 buttons, pressing one of them will start an infinite loop and pressing the other one will stop it. All the methods ive tried will just pause the loop. from ...
0
votes
0answers
37 views

Python: Tkinter file dialogues

I am using Tkinter and pyinstaller (python 2.7) and I can't seem to get file dialouges working import Tkinter root = Tkinter.Tk() root.withdraw() save_dir = tkFileDialog.asksaveasfilename() When ...
0
votes
1answer
32 views

How do you replace a label in Tkinter python?

I am a newbie programmer and I am making a currency converter....It is still in progress, but could anyone help me to try to replace the label made in 'def convert()'...To be clear, right now ...
0
votes
1answer
14 views

key only call once while down in python

I am trying to make a game in python using tkinter ( i don't really want to learn pygame stuff ) and i am make an input processor using keys. I am trying to differenciate between a key down and a key ...
-3
votes
0answers
36 views

how can I flare up a field [on hold]

My program controls an equipment. When some value is written into a field and appropriate key is pressed, the value is sent to the equipment. I'd like to acknowledge somehow if it is accepted, but do ...
0
votes
0answers
35 views

How do I prepopulate a text field with suggested text in Tkinter?

I'm trying to prepopulate a text field based on the most recent entry. As this is not a Listbox, I don't see how to do it, and I'm not seeing any examples on the web. Thanks. Update. I've managed to ...
1
vote
1answer
22 views

tkinter and configparser : looking for a more beautiful solution

I want to use config.ini's values as startup values for Tkinter Entry items. When the program is finished, I want to write the content of these Entry into the config.ini. I have 2 problems with the ...
2
votes
1answer
23 views

How to hide or disable the mouse pointer in Tkinter?

I have a fullscreen Tkinter Python application which does not need the mouse -- a simplified version is below. It opens fullscreen and activates a text widget upon pressing F1. import Tkinter as tk ...
0
votes
1answer
19 views

__init__ in GUI with tkinter

I am learning to create simple GUIs with python using Tkinter. I am currently using the python documentation as reference (link). First thing I am trying to do is understand the sample code there. I ...
1
vote
1answer
23 views

radio buttons tkinter passing host value

Trying use radio buttons to select which host I'm referring to since ultimately there will only be two and they are fixed addresses. This is the error: File ...
0
votes
1answer
24 views

How do I correct this function to create a label in Tkinter Python?

can you help me correct this so I get a label appearing please :)? I dont think the 2 functions are properly written, I am new and need some help... FYI the 'convert' function is commanded by the ...
0
votes
2answers
20 views

Unable to call Tkinter module in Python2.7 for some reason

I am unable to call Tkinter from text editor(sublime) OR interpreter.. I did a fresh Debian install on Virtualbox with ActivePython2.7 Here is a video on 1.5min for easier explanation on my problem! ...
3
votes
1answer
27 views

Radiobutton modifying increment values in spinbox Python

I'm trying to create a GUI in Python 2.7 with Tkinter. I need that the increment value from my Spinbox changes accordingly to a value selected from a selection of Radiobutton. I've tried different ...
0
votes
0answers
27 views

Placing text from python to windows 8 clipboard

I've searched around on stackoverflow and I can't seem to understand how you would copy a string input into the windows clipboard. So what I want to do right now is to take a string in a program in ...
2
votes
1answer
52 views

tkinter and scrabble solver problems

I have had to learn python 3.3.3 for a logic and design class. I am extremely new at programming and the code below is the culmination of what ive learned on my own in 10 weeks. I had my program ...
0
votes
1answer
29 views

Tkinter - How to create submenus in menubar

Is it possible? By looking at the options I'm stumped. Searching on the web hasn't lead me anywhere. Can I create a submenu in the menubar. I'm referring to doing something similar to Idle Shell when ...
0
votes
1answer
19 views

Tkinter text split and output program

I want to make a GUI program with Tkinter which would take in the text and then display all the sentences of the text one by one, moving on, when i click button 'Next'. Problem is that I have no ...
1
vote
3answers
18 views

Sticky=W by default for all objects (Tkinter)

Is it possible to have sticky=W by default for grid positionning in tkinter ? Label(master, text="First").grid(row=0, sticky=W) Label(master, text="Second").grid(row=1, sticky=W) ... This would ...
0
votes
1answer
26 views

Having some trouble getting which radio button is selected and issuing a command based on the selection

I'm writing a program that converts an image to grayscale. I have it working fine and now I'm implementing radio buttons to let the user choose which type of grayscale to use. So far my problem is ...
1
vote
1answer
32 views

Entry string not being added to listbox

Could anyone help me debug this? The listbox isn't updating, and I'm not sure if the entry text (ment) is even transferring to the method. def NewTask(): ment = StringVar() top = Toplevel() ...
3
votes
1answer
53 views

Tkinter Draw Problems

I just finished writing a Tkinter based GUI of the board game Othello for a programming class. Everything seems to be working correctly, but something strange is still happening: any changes that ...
0
votes
1answer
29 views

python tkinter open window with button

I am trying to write some code like this in Python tkinter I want the NewWinButton can only create ONE new window at the time, which means if if NewWin.winfo_exists() == 1: ...
0
votes
1answer
24 views

Python:Tkinter — How do I get cursor to show busy status

I'm trying to make Tkinter show a busy cursor. Unfortunately, I must be missing something terribly obvious. Following is a very simple program that reproduces my problem: from Tkinter import * ...
1
vote
1answer
21 views

Tkinter Button callback execute before being pushed [duplicate]

My script seems to execute the buttons and their callbacks on startup, not as when pushed as I would think. what am i doing wrong? The calls also don't seem to re-execute after the script has ...
0
votes
2answers
57 views

Python 3.3 GUI Program

Celsius to Fahrenheit-- Write a GUI program that converts Celsius temperatures to Fahrenheit temperatures. The user should be able to enter a Celsius temperature, click a button, and then see the ...
0
votes
1answer
31 views

Python Tkinter - .py file doesn't work when double clicked

I am running Windows 7 and have Python 3.3 64 bit installed. I seem to have a problem importing the tkinter module, I can import it fine through the python IDLE and it will work, but when I save the ...
1
vote
1answer
58 views

python 3.3 GUI Programing

I have this code written for a GUI program. The question is Question 1 – Chapter 14 – Question 6 – Joe’s Automotive performs the following routine maintenance services: Oil Change--$26.00 Lube ...
2
votes
2answers
40 views

How do you validate a window in Tkinter?

def createWidgets(self): self.INSTRUCTIONS = Button(self) #creating button linked to instructions_window self.INSTRUCTIONS["text"] = "Instructions" self.INSTRUCTIONS["fg"] = ...
1
vote
1answer
47 views

Python loop while collecting data

I have an NFL simulator that runs and spits out a score for both teams based on a couple variables, however I would like the simulator to be more accurate. I am trying to get it to run 100 times, ...
-1
votes
0answers
26 views

Can you use submenus with Tkinter's optionmenu widget? [on hold]

Is it possible to create sub menus within the optionmenu widget? If not is there another way to create a menu box with submenus apart from the main menu bar?
1
vote
1answer
26 views

Attribute error two classes

I am trying do two classes but I get an AttributeError: Application has no attribute "make_request" and it says that about make_requests and city_data too. Here is my GUI: from tkinter import * from ...
0
votes
2answers
35 views

Display message when going over something with mouse cursor in Python

I have a gui made with TKinter in Python. I would like to be able to display a message when my mouse cursor goes, for example, on top of a label or button. The purpose of this is to explain to the ...
0
votes
0answers
20 views

Python Tkinter functionality out of the mainloop() specifically with ttk progressbars

I have a little example that someone has asked me for. The background is the following. There are many scripts written inhouse in my place of workand the question is: how easy is it to attach a ...
0
votes
0answers
28 views

Bind event on combobox item hover

Here is example of simple ttk dialog to demonstrate my problem: from Tkinter import * import ttk items = ["Item %d" % (i+1,) for i in range(9)] d = dict(zip(items, [i + ' description.' for i in ...
0
votes
1answer
20 views

Python calculation/get function with menubutton

I am having problems when trying to set up a calculation for an NFL Simulator. User selects a team from a menu and each team has three variables: power rank, win percentage and luck. When making the ...
1
vote
1answer
145 views

Obscure, repeatable crashes in multi-threaded Python console application using tk

Using tk in my multi-threaded(*) console application causes it to crash without stacktrace, giving the message "Tcl_WaitForEvent: Notifier not initialized Abort trap". The symptoms were that all my ...
0
votes
2answers
415 views

auto close Tkinter

In a class, in a function I am creating a Tkinter Canvas. This function is being called by another class, I would like for the Tkinter window to pop up for 30 seconds and then close itself. I have it ...

15 30 50 per page