close
Skip to main content
Filter by
Sorted by
Tagged with
-3 votes
1 answer
84 views

import tkinter pkg = tkinter.StringVar() text_box = tkinter.Entry(root, textvariable=pkg) text_box.pack() if pkg != "": sel = pkg.get() else: sel = "none selected" ...
User's user avatar
  • 11
1 vote
2 answers
125 views

I need to create a tkinter Entry widget to enter a dollar amount into. It needs to type the numbers in from right to left, which I know how to do. I need some way to indicate a division between the ...
A.M. Newberry's user avatar
Best practices
0 votes
4 replies
56 views

For instance (partial code), def validate_input(self, P, S): if '$' in S: return False return True vcmd = (root.register(validate_input), '%P', '%S') entry = ttk.Entry(root, ...
trandolph's user avatar
0 votes
0 answers
96 views

I would like to replace the toplevel tk.Menu widget's default cascade entry submenu-arrow (pictured) with a custom arrow image. As far as I can tell, this miniscule arrow bitmap is the default for the ...
moof-moof's user avatar
2 votes
2 answers
96 views

Here is an example program, which sets two options text and padding for a label. import tkinter as tk import tkinter.ttk root = tk.Tk() root.geometry("300x200") label = tk.ttk.Label(root, ...
finefoot's user avatar
  • 11.8k
1 vote
1 answer
69 views

import tkinter as tk import tkinter.ttk root = tk.Tk() root.geometry("400x300") frame = tk.Frame(root) frame.pack(fill="both", expand=True) vertical_scrollbar = tk.Scrollbar(...
finefoot's user avatar
  • 11.8k
2 votes
1 answer
101 views

Project contains 3 files main.py from customtkinter import * import tkinter as tk from tkinter import ttk from include.frame_select import FrameSelect from include.frame_main import FrameMain window = ...
mrG's user avatar
  • 13
1 vote
1 answer
107 views

import tkinter as tk root = tk.Tk() root.geometry("400x300") outer_frame = tk.Frame(root) outer_frame.pack(fill="both", expand=True) vertical_scrollbar = tk.Scrollbar(...
finefoot's user avatar
  • 11.8k
1 vote
1 answer
84 views

import tkinter as tk root = tk.Tk() frame_top = tk.Frame(root, bg="lightyellow") frame_top.pack(fill="both", expand=True) label_top_1 = tk.Label(frame_top, text="Label",...
finefoot's user avatar
  • 11.8k
Advice
0 votes
3 replies
104 views

Is there a more accurate way to screenshot like a specific tkinter widget besides just calculating their coordinates, because it sometimes screenshots outside the window itself. Heres my code: def ...
CoolGuy158's user avatar
1 vote
1 answer
128 views

I am trying to build a data visualisation app using tkinter that draws a table with a dropdown element in each record. to do this I place labels using grid and one frame. When I attempt to place ...
JPSauce's user avatar
  • 11
0 votes
0 answers
110 views

In the following snapshot, the image of the pet is supposed to be in an "Idle" state, but is currently in a "Sad" state, despite the console saying the state is currently in "...
floofyneko69's user avatar
1 vote
0 answers
120 views

I'm left going around in circles as any solutions I could find have not worked for me or the code I'm trying to work with For the most part, I have been able to get a rectangle to render just fine ...
floofyneko69's user avatar
2 votes
2 answers
111 views

I am trying to create a class to put tkinter headings onto a window, however for some reason it will not place them. I have tried to move the .place around and out of the class and it doesn't seem to ...
Audrina_Fox's user avatar
3 votes
1 answer
132 views

I am very, very new to programming having just finished a semester-long course on Python. I wanted to take an existing program I had written for my class and redirect all the output text to a separate ...
user32674704's user avatar

15 30 50 per page
1
2 3 4 5
3512