Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

The following code will place the window in a random position. I want it to use the fixed position I specified. My screen is a TV with a 3840x2160 HDMI connection and a second screen 1920x1080. ...
Peter Mason's user avatar
1 vote
1 answer
78 views

I always thought that only frame and other container elements can be parent, but recently when I tried the below code, it seemed to work perfectly without any error. import os import tkinter as tk ...
Art's user avatar
  • 3,171
1 vote
0 answers
47 views

I want to create a class for a Tk.Button in a Tk.Frame so that the button can have a border color independent of its background color. I wrote this code import tkinter as tk class FramedButton(tk....
user1069353's user avatar
0 votes
1 answer
53 views

The following code enables the status bar to remain at the bottom of the window and expand to fill the window when the window is resized. How can I replace pack() with grid() to do the same thing? ...
bob_the_bob's user avatar
-4 votes
1 answer
81 views

I wanted the button and password input to be right next to each other without a gap, but I ran into this problem and there was a gap between them. I tried to remove the space between this input and ...
Parsa's user avatar
  • 1
0 votes
2 answers
97 views

I have a main window and made a pop-up window 'logwind' inside of the function 'log_window'. I want to add entry boxes to the window from outside the function but I keep getting a Name error. How can ...
ratty patty's user avatar
0 votes
0 answers
92 views

I am trying to create an expandable list viewer in python3.6.8 using tkinter grid. I have a scroll frame that contains a list of element frames in a grid layout: ApplicationWorkingProperlyIMG This ...
flsd fkln's user avatar
0 votes
1 answer
73 views

I have a app which uses ttkbootstrap and as a learning exercise wanted to turn it into a class based app. I am falling at the first hurdle so to speak as the basic window shows up as a different size....
Terry Wright's user avatar
0 votes
1 answer
61 views

I am trying to update the widget frame when I add a new folder to the users directory, but I am unsure how to implement that function. This is what I have so far.. How I add the current directory ...
marc's user avatar
  • 1
1 vote
0 answers
60 views

I cant seem to figure out why the children of my tree are not indenting from their parent node and are lined up directly with them instead. # Tree view initializers # Tree Cloumns filterTree = ttk....
Demian's user avatar
  • 11
0 votes
1 answer
55 views

I place my text, entry and buttons in the same way based on the image width as seen in the code. When I now make the window bigger than the image width, then the buttons start moving like they use the ...
SGKlee's user avatar
  • 82
-1 votes
1 answer
79 views

I am trying to use a GUI for button and plot. When I include show_graph() function inside tabss the window is resized, also widgets and text resized to smaller. import matplotlib.pyplot as plt from ...
sai's user avatar
  • 51
2 votes
1 answer
60 views

Assume a simple 3row-1col grid, where 2nd widget is a label, while 1st and 3rd widgets are Text. sticky and weight settings are most certainly correct. Grid dimensions are defined and shouldn't be ...
Skopyk's user avatar
  • 43
1 vote
1 answer
105 views

I have an OptionMenu and a Button in adjacent rows of the same column of a grid. I don't want the grid to manage the size of these widgets, because it can make the widgets much too wide. Instead, I ...
user19087's user avatar
  • 2,131
0 votes
1 answer
47 views

Below is the code for a text editor program. I understand that the grid_rowconfigure() and grid_columnconfigure() methods have to do with dyanmically resizing of Tkinter grids so that the grid ...
Casey Wong's user avatar
0 votes
0 answers
62 views

I want to make a frame containing a left and right button and a frame that stores some products that can be clicked on. Yet, when I add the products into the frame with expand=False, it doesn't work. ...
Toby's user avatar
  • 71
0 votes
1 answer
46 views

I am new to learning tkinter and I am trying to make a simple tkinter GUI to run EXIFTool. problem 1) When I uncomment StatusBar I get the following error; cannot use geometry manager grid inside . ...
bob_the_bob's user avatar
0 votes
2 answers
55 views

I have a Tkinter frame with 3 buttons side by side. My goal is to have the left button about 2 or 3 times wider than the others. I tried many different grid configurations but nothing works, they stay ...
longira's user avatar
  • 13
0 votes
1 answer
52 views

I've been trying to make a program, with 3 layouts depending on the window's width (using Tkinter). The issue is in the medium layout. Whenever I place my mouse onto the left canvas and use the ...
clicky clicky's user avatar
0 votes
0 answers
36 views

I want to create a similar UI to the Windows update UI which contains dropdowns. Each dropdown can be expanded to reveal additional tkinter frames with buttons on the right: How can I make this UI in ...
Shakir's user avatar
  • 559
0 votes
1 answer
63 views

I'm working on simple window and like to have clock in it. Found out how to dynamically display time in separate window: Somehow same code placed into my project displays only label's purple ...
adamssson's user avatar
0 votes
1 answer
114 views

I coded a simple ttkbootstrap/tkinter application that contains 4 Frames that divides the "root" window in 4 and added a simple button and a Text widget. Here's the code: import ttkbootstrap ...
user26427371's user avatar
2 votes
1 answer
45 views

So a little stylistic thing I want to do is move some buttons to the east side of the window while having them all on the same row. Sounds easy enough and the grid method has a sticky parameter that ...
Thevin Jayawardena's user avatar
0 votes
1 answer
73 views

I am writing a small example with tkinter. Here what I got (things are layouted nicely) enter image description here The codes for it are given below import tkinter from tkinter import ttk from ...
Math's user avatar
  • 35
0 votes
1 answer
38 views

I am running Tkinter on Widows in grid layout. The program has a mix of elements with and without columnspan. The elements that span across columns look as expected. But elements (Entry and Button) ...
VikSil's user avatar
  • 108
1 vote
1 answer
71 views

In the code below, I'm destroying frame1 and frame2, so that the messages can make use of the extra space after destroying frame1 and frame2. The functionality I need is: When a message is sent, ...
noocoder777's user avatar
1 vote
0 answers
67 views

I am facing this issue where whenever I try to trigger the activate() method by clicking the command inside the Menu widget, I am not able to see the method in action because by default the Menu ...
user23339661's user avatar
0 votes
0 answers
22 views

I have a problem when hiding buttons in the view_transaction function. def create_widgets(self, transaction_frame): # Add some style style = ttk.Style() # pick a theme style.theme_use(...
Geethaka Sankalpa's user avatar
0 votes
1 answer
72 views

I am prototyping a chatbot UI in tkinter. However, I can't seem to find the reason why the border of my canvas widget (at least I am assuming it is the border), which is defined inside a frame widget ...
pg13 's user avatar
  • 31
0 votes
0 answers
113 views

I have two programs and their layout is almost similar, but one works and one gives an error. What is the difference between them. This is my first program which works fine: import tkinter as tk from ...
rahul's user avatar
  • 1
0 votes
1 answer
142 views

In my code, I only want to make the sender name bold. This means I only want to make "User" and "Gpt-3.5-turbo" bold. For some reason, messages sent by "User" is always ...
noocoder777's user avatar
0 votes
1 answer
880 views

I want to stream Openai gpt-3.5 response and display in a tkinter frame. The below code works fine but the problem is that each streamed chunk is displayed in a new line. I want to join these streamed ...
noocoder777's user avatar
0 votes
2 answers
239 views

This is my first GUI: #GUI1 import random, Id_generator, tkinter as tk from tkinter import ttk #constanst STUDENTS = 15 TEACHERS = 4 def main(): #Main Window app = tk.TK() app.title('...
blondiefunk69's user avatar
0 votes
2 answers
96 views

So I made this code that calculates a student's average and I am trying to get the results to appear at the bottom of the window. the problem is that I want a new result label to appear every time I ...
Platinumhero's user avatar
0 votes
0 answers
70 views

I've made a python script for a raspberry pi that: records audio for 4 seconds. uses Shazam via Shazamio to find the song title and artist and cover art. makes a window using Tkinter and shows the ...
IveGotNoIdea's user avatar
1 vote
2 answers
92 views

I am running this in Pycharm, and I can't get this dropdown to open on top of other windows. I would also like to center the dropdown menu in the center of the screen. from tkinter import * def ...
Rob Lasch's user avatar
  • 107
0 votes
1 answer
110 views

I am turning my board game into a simply animated python game and I was wondering how to create walls that will stop my player entity. It is a dungeon crawler style game. Perhaps it would be possible ...
NullVoid's user avatar
-1 votes
1 answer
98 views

I want to make the canvas size change dynamically when the size of the size if the window changes. my canvas is in a frame and the frame is inside the root. as you can see in the code: canvas = tk....
rayen samali's user avatar
-2 votes
1 answer
73 views

I made a desktop app using Tkinter Python and I had a problem with the positions of the button, especially the exit button, I am using "pack" as shown in the following imgs: I've tried to ...
Fenx's user avatar
  • 162
0 votes
1 answer
62 views

Main/Parent Class class tkinterApp(tk.Tk): #Root Window def __init__(self): #main set up super().__init__() self.geometry("700x700") self.title('Wuiz') ...
user14232195's user avatar
0 votes
1 answer
529 views

I am using border_color on a custom tkinter frame and it is not working properly. Here is a picture of how it looks: I want the border colour to be around the whole frame but it is not doing so. Here ...
Govind 's user avatar
1 vote
1 answer
125 views

I'm trying to create: I'm Trying to Create this grid layout (ignoring Entry box right now) but I'm Having issue in stretching the 5th row having 5 columns equally. So far, I have achieved this. Code ...
محمد عبدالله's user avatar
0 votes
1 answer
69 views

When trying to position 2 TFrames on the main TFrame grid, it ends up with a gap between the two that shouldn't exist Here is the code: import tkinter as tk from tkinter import ttk class App(tk.Tk): ...
DigoDMe's user avatar
1 vote
3 answers
91 views

I need to add a vertical scroll bar for the "treeview_1" which is inside a grid. Basically, I created a grid. Inside a grid so, my solution is at this part # scrollbar vsb = ttk....
turtle rough's user avatar
0 votes
1 answer
245 views

as the title suggests, im writing a program that returns data from a mongodb database and shows it in a treeview. This data includes a base64 encoded image. When I pull back the b64 image and decode ...
Steven's user avatar
  • 21
0 votes
1 answer
189 views

For some tkinter app wanted to save/restore windows configurations. Was using geometry() method. Getting the results I have failed to comprehend, I composed an example below to illustrate the problem. ...
Vladimir Zolotykh's user avatar
0 votes
1 answer
1k views

I don't know if it's a duplicate question or not but I really want to be able to resize placed tkinter widgets when window is resized using .place() only. I know that I can use .grid() for this but to ...
AshwinTheGammer's user avatar
0 votes
1 answer
62 views

I want to navigate through different pages(frames) on my TKinter interface using buttons. First I need a grid that is evenly distributed over the interface so that I can place widgets accordingly on ...
user avatar
0 votes
1 answer
56 views

I am just trying to make the green frame fill the remaining empty space of a window, but I can only get it to fill the bottom half no matter what I do. Screenshot Here is my code: from tkinter import *...
sandwichwasher's user avatar
1 vote
2 answers
58 views

I want to make "=" button higher so it cover the space above(also wanna make "." wider so it also covers space) what I am getting so I want to join the cell above "=" and ...
Eric's user avatar
  • 11

1
2 3 4 5
9