Re: tkinter resizable text with grid

2018-12-10 Thread lizhollinshead5
On Thursday, 6 December 2018 07:02:50 UTC, Paulo da Silva wrote: > Hi! > > Does anybody know why this code does not expand the text widget when I > increase the window size (with mouse)? I want height and width but as > minimum (or may be initial) size. > > import tkinter as tk > > class App: >

Re: tkinter resizable text with grid

2018-12-07 Thread Paulo da Silva
Às 07:11 de 07/12/18, Christian Gollwitzer escreveu: > Am 07.12.18 um 03:00 schrieb Paulo da Silva: >> Às 21:15 de 06/12/18, Rick Johnson escreveu:  ... > So instead of complaining about lacking support in Tk, the > Python community should do their homework and provide wrappers to the > most c

Re: tkinter resizable text with grid

2018-12-06 Thread Christian Gollwitzer
Am 07.12.18 um 03:00 schrieb Paulo da Silva: Às 21:15 de 06/12/18, Rick Johnson escreveu: I kinda have a love/hate relationship with Tkinter and IDLE. On one hand i find them to be practical[2] and simple[3] and on the other, i find them to be poorly designed and unintuitive. And it's a rea

Re: tkinter resizable text with grid

2018-12-06 Thread Paulo da Silva
Às 21:15 de 06/12/18, Rick Johnson escreveu: > Paulo da Silva wrote: > ... > > In Tkinter, if you have a "container"[1] that only has a > single widget stuffed inside, and, you want that single > widget to expand to fill the extents of its parent > container, then, the pack geometry manager is t

Re: tkinter resizable text with grid

2018-12-06 Thread Paulo da Silva
Às 08:24 de 06/12/18, Peter Otten escreveu: > Paulo da Silva wrote: > ... > > You have to set the column/row weight of the /master/: > > master.grid_columnconfigure(1, weight=1) > master.grid_rowconfigure(1, weight=1) Ok. That works! > > Also, columns and rows usually star

Re: tkinter resizable text with grid

2018-12-06 Thread Peter Otten
Paulo da Silva wrote: > Does anybody know why this code does not expand the text widget when I > increase the window size (with mouse)? I want height and width but as > minimum (or may be initial) size. > > import tkinter as tk > > class App: > def __init__(self,master): > self.tboar

tkinter resizable text with grid

2018-12-05 Thread Paulo da Silva
Hi! Does anybody know why this code does not expand the text widget when I increase the window size (with mouse)? I want height and width but as minimum (or may be initial) size. import tkinter as tk class App: def __init__(self,master): self.tboard=tk.Text(master,height=