Questions tagged [tkinter-layout]

378 questions
0
votes
2 answers

Python scrollable frame and canvas window sizing

I have been trying to find a way to size a frame inside of a canvas window for quite a while to no avail. I finally came across some posts that helped me begin to understand the problem, and eventually dug up a post that gave the solution…
0
votes
1 answer

Tkinter Image and text display

Im trying to use Tkinter to display an image and text like this however I do not know how to do it, any help would be appreciated. I tried writing some code of my own, however the most I got is text displaying UNDER the image, not next to it like…
0
votes
0 answers

Is there a way to change the color of the top frame of Tkinter?

I've been trying to find ways in changing the color of the top frame in the program that I've created. This is what I'm trying to replace The only thing I can change at the moment is the background. My current code is root (Tk) root.title("CIG…
0
votes
0 answers

window display with 3 tabs and each tab with sub tabs

I tried to create 3 sub tabs but I couldn´t get as vertical as it shown in Img_1.pn image and finally the square line shouldn´t appear tha´s highlighted with red color enter image description here import tkinter as tk from tkinter import ttk from…
0
votes
0 answers

How to know if the default icon is changed in tkinter window?

I know there are different methods to change the icon image in the window like iconphoto and iconbitmap, but is there any event which can tell if the default tkinter icon is changed?
Akascape
  • 219
  • 2
  • 11
0
votes
1 answer

Tkinter Grid Spacing Issue

So I'm trying to create a basic text-entry thing to understand the basics of Tkinter, but when I try and grid something, if the column or row is greater than 1, it will act as if it is 1 Here is my code: from tkinter import * window =…
Yugm Shah
  • 15
  • 6
0
votes
0 answers

How to customize the tkinter default icon menu

The default menu which opens by clicking the window icon in tkinter as shown in the figure. How to customize it? I'm not able to do that. I want to add some more options in the same like zoom in and zoom out.
0
votes
0 answers

Tkinter Function

I am new to programming and just started learning python and Tkinter. Since I am more of a visual and try and error learner I made a personal project which is a Scoreboard. I created the interface and know that i need to change the label…
0
votes
0 answers

The treeview item separator line gets vanished after applying the configured style

This is the style I implied style_add_wear = ttk.Style() style_add_wear.configure("add.Treeview", background="white", foreground="black", fieldbackground="white",font=('calibre', 12), sheight=10,…
0
votes
1 answer

close window then open in tkinter

(tkinter) i want when i click on button that create a new folder and my problem is (i want this page is disable and every time i wants that open) just like accounts in game i make a class that make an window but when i closed that and open that…
0
votes
0 answers

Tkinter treeview gets the style of first treeview inspite of having its own style

The first treeview which had a particular style was: class tree: def __init__(self): self.tree = ttk.Treeview(frametree,height=28) self.tree.grid(row=1,column=0,padx=2) self.tree.column("#0",width=250, stretch=NO) …
0
votes
0 answers

How to update the treeview serial number after deleting the items

I tried this code but when an item is deleted the serial no doesn't get updated. I want this program delete the data and update the serial number after deletion. I tried to initiate a variable but it gets updated to 1 every time I click add data…
0
votes
1 answer

How to show only a portion of the tkinter canvas by cropping the tkinter window?

I want to be able to zoom into my tkinter canvas. My tkinter canvas is 500x500px, and I only want my window to display the center 200x200px portion of this canvas. How do I do this? I know that I can just specify my window size as 200x200px using…
0
votes
0 answers

Tkinter Programmatically hide and Show widget behaviour

I'm just starting out and this is a bit newbie: So I have a Sorting Visualizer app with Tkinter. I want to pack and unpack(Hide) a widget programmatically After a certain function finishes. here is the code for one of the sections that I want to…
0
votes
0 answers

How to make tkinter frame scrollable. I want to make a scrollable frame with various frame containing text

I put the text inside a frame and make those frames scrollable inside the parent frame. I have done a lot of afforts but cannot achieve this the error says. "AttributeError: 'Frame' object has no attribute 'yview'" Is there any way to resolve…