grid

Why is there extra space after the last column in a Tkinter application?

Why is there extra space after the last column in a Tkinter application? Question: I’m trying to build an application in Tkinter. When the user presses a button, I need 3 widgets to appear in certain rows and columns. When the user clicks again, I need 3 more widgets (of the same types) to appear …

Total answers: 1

can't get counter to move across a board anymore

can't get counter to move across a board anymore Question: I’m creating a board game and i’m in the initial stages of displaying the board and getting the counter to move across the squares. The code to get the counter to move worked, but I had to change where it was because the square colours …

Total answers: 1

Trouble with the Tkinter Grid manager when a canvas is placed in window

Trouble with the Tkinter Grid manager when a canvas is placed in window Question: Python, tkinter, I’m trying to write a program that takes a file and uses its contents to drawl a picture. I can’t get the grid manager to line the widgets up correctly. I want it to look like the first picture, …

Total answers: 1

WxPython, How to implement paging functionality for wx.grid.Grid?

WxPython, How to implement paging functionality for wx.grid.Grid? Question: I want to load a csv file with (10 cols, 1 000 000 rows), on to wx.Grid with row autosizing. The time taken to auto size 1 million rows is too much (>1 hour depending on data). So I want to implement paging functionality to wx.Grid. …

Total answers: 1

Set size for a frame

Set size for a frame Question: What is the point of setting a size for a frame on Tkinter, if it will resize every time I add a new widget. ` frame1 = Frame(self.MainWindow,width=600,height=100,bg=’Blue’) frame1.grid(row=0,column=0) #frame1.pack() #Title self.mainTitle = Label(frame1,text=’Welcome’) self.mainTitle.grid(row=0,column=1,padx=60,pady=5) #Back button backButton = Button(frame1,text=’Home’,command=None) backButton.grid(row=0,column=0,padx=60,pady=5) nexButton = Button(frame1,text=’Next’,command=None) nexButton.grid(row=0,column=2,padx=60,pady=5) ` I do not …

Total answers: 1

tkinter label and button grid placing

tkinter label and button grid placing Question: i have created window, in that window i put frame. Then i want to create two labels after them button widget. But, button widget appears upper than second label widget even though i put btn in row=2, and label2 in row=1. It ‘s hard for me to get …

Total answers: 1

A question about 'pack' or 'grid' for tkinter widgets error

A question about 'pack' or 'grid' for tkinter widgets error Question: I am learning python.I follow the book example code. This code make SumGrid class in order to be attachable to containers where other widgets are being gridded or packed. The author said that it leaves its own geometry management ambiguous and requires callers to …

Total answers: 1