1
vote
2answers
38 views
Python: How to get an entry box within a message box?
I just realised I hadn't asked the user for their name at the start of the game. So I tried this code:
Label(root, text="What is you name?").grid(row=0, column=0)
e1 = self.Entry(root)
...
-3
votes
2answers
26 views
Running separate program within a python program [on hold]
I have a login system, but what I want to do is when I click on my 'family fued' button run a whole new python script without ruining my current script.
0
votes
0answers
26 views
Tkinter window focus on Mac OS X
I'm writing an application in Python with the Tkinter GUI framework. It listens for keyboard and mouse events, so it must have focus. When it is launched from a terminal in Ubuntu, the following code ...
0
votes
1answer
35 views
Python - Image not being drawn on canvas
I have a statement inside a while statement that is supposed to draw an image onto the canvas but it doesn't happen and I don't know why as it doesn't show any errors.
def ...
2
votes
1answer
30 views
Representing an equation as a canvas object in Tkinter
I'm trying to make a program which deals with symbolic equations rendered on a canvas object in Tkinter. The program needs to be able to draw an equation, and then when users clicks on the equation, I ...
0
votes
1answer
35 views
Simple app creating Python tkinter
I was trying to create a simple app for illustration purposes. The idea is as follows:
Create an application which will run script files associated only to the selected courses (radio buttons). So, I ...
0
votes
2answers
30 views
Tkinter Program for making a calculator
I am trying to make a simple GUI calculator just for addition/subtraction in the beginning. I am able to print the result to the console but I want to print it to the Entry box like the First Name ...
0
votes
1answer
25 views
converting code from Tkinter TEXT to Tkinter LABEL
I want the received data to be centered on tk window instead of printing from top.So I want to write code using Label widget instad of TEXT widget.(TEXT widget print from top and LABEL widget centers ...
-3
votes
1answer
30 views
How i can draw an image with Canvas by creating lines in tkinter python? [on hold]
How i can draw an image with Canvas by creating lines in Tkinter python ?
Note: Please give me example with code to make me easy to understand .
Thank you.
0
votes
1answer
38 views
Python Tkinter PhotoImage
This is the format of code i currently have:
import Tkinter as tk
class mycustomwidow:
def __init__(self,parent,......)
......
......
tk.Label(parent,image=Myimage)
...
0
votes
1answer
35 views
can we code time in text widget?
Is it possible to code time HH:MM:SS using text widget?
I know we can do this with label widget. My code deals with text widget and want to display time at any corner on the TKinter window.
If ...
1
vote
1answer
24 views
Dynamically Creating Functions and Binding Buttons in Tkinter
I am trying to assign values to buttons which return their value when clicked (more precisely, they print it.) The only caveat is that the buttons are created dynamically, using a for loop.
How can ...
1
vote
1answer
18 views
Typing Text into the Tkinter Canvas Widget
I need to allow the users to type text into the Canvas Widget, making the canvas update as the user types new text.
Here's what I have tried so far, but am not getting it to work.
First I have a ...
0
votes
1answer
13 views
Make Tkinter window not always on top
I have a simple program as follows:
from Tkinter import *
class Run:
def __init__(self,parent):
parent.overrideredirect(True)
root = Tk()
app = Run(root)
root.mainloop()
When I run ...
0
votes
1answer
15 views
(Python/Tkinter) Way for click button and press enter to call to the same function?
Ok so basically I have a gui that has entry box and a submit button.
I trimmed down all the other widgets so we can just focus on the problem.
In the code below I am basically trying to use get() and ...