0
votes
1answer
17 views
Python: Check config file
I have made a program that collects and creates data inside config files (.ini) but the thing is I need to know how I can make it so it checks if something is already in the config file and then if it ...
1
vote
1answer
9 views
Tkinter Textbox index delete 1.10 not working
I'm trying to delete a single character from a Text box and to do that I obviously need to know the index of the character that I want to delete. I know that each character has it's own index like ...
0
votes
1answer
12 views
How to place tkinter entries into a method?
Basically, the problem is that this doesn't work:
def run():
print song.get()
def startGUI():
root = Tk()
songLabel = Label(root, text="Enter the song:")
song = Entry(root)
...
0
votes
2answers
15 views
Python Tkinter - How to place the input from an entry using entry.get()
I just started using Tkinter in Python.
I have an entry named "Username".
username = Entry()
username.place(x = 10, y = 50)
and a submit button
submit = Button(text="Submit", command=getInfo)
...
0
votes
1answer
54 views
ttk Entry background colour
How exactly do I change the background colour of an Entry widget from ttk? What I have so far is:
self.estyle = ttk.Style()
self.estyle.configure("EntryStyle.TEntry", ...
0
votes
2answers
27 views
tkinter math program type error
Hi I am making a math program that works with different users and then writes there scores into a config file (.ini) but the thing is when ever I try to do this i get an error saying:
Exception in ...
1
vote
1answer
25 views
Make a tkinter window fullscreen [duplicate]
I want to make a program that goes full screen and when I mean full screen I don't mean like maximized I mean like it covers the whole screen so like you can't see the taskbar and all that,
Any ...
-2
votes
2answers
36 views
Where do I store image that I am going to use in my python script?
I am trying to render an image in tkinter. I have seen many scripts on stack overflow on how to make an image, but when I try that it says that my picture does not exist. Is there a certain place ...
1
vote
2answers
20 views
Setting font in tkinter returns errors
I'm in the middle of rewriting the code for my first tkinter application, in which I'd avoided using classes. That was a dead end and I have to finally learn class programming in python. I've ...
1
vote
1answer
21 views
Tkinter image as frame style
I'm using the code I found here: http://svn.python.org/projects/python/branches/pep-0384/Demo/tkinter/ttk/roundframe.py which gives me frames with rounded corners. However, I'd like to colour the ...
1
vote
1answer
35 views
Basic timer in tkinter
I have written some code for a python timer but when ever I run it I get an error but the thing is I don't know what to do so I came here for help after I searched all over the internet for help but I ...
0
votes
1answer
8 views
keeping grids spaced in python when using multiple frames
I'm trying to get my top frame to have equal spacing between all three labels. I don't want to hard code widths of "invisible" labels to separate them because the bottom frame may need to expand the ...
0
votes
0answers
13 views
Is there an in depth ttk styling guide available?
So I've begun dabbling with Tkinter as of late, and I have it in my head to create what is essentially an application for storytelling. Ultimately, I'd like stylize most every widget used to conform ...
2
votes
2answers
26 views
Is it possible in tkinter to pull up different screens in the same location
i am going to create an tkinter gui app, and i know how i want it to look. but after playing around with tkinter, i found no way to toggle between screens when you press buttons down at the bottom. i ...
0
votes
1answer
18 views
Button made of an image - Tkinter
I'm trying to make a Tkinter button that uses an image, and when clicked will execute a function on_button(). My current code is shown below.
b = Button(root, image = play, command = on_button)
...