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: Creating type evaluation annotation

2018-12-06 Thread dieter
Marek Mosiewicz writes: > ... > I know that Python 3 has possibility to have indicate > type for varibale or param > What could be great to have possibility to annotate any > class with what I call "type evaluator" function. > That could check method signature with rules specific  > for given typ

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: Creating type evaluation annotation

2018-12-06 Thread Thomas Jollans
On 06/12/2018 11:48, Marek Mosiewicz wrote: > I'm Java developer,but had some experience with Python based > ERP software. It is quite serious application and I feel > unconfortable with not having type checking. I do not say language > should be static, but having checking method signature > is b

Re: Creating type evaluation annotation

2018-12-06 Thread Jon Ribbens
On 2018-12-06, Marek Mosiewicz wrote: > I'm Java developer,but had some experience with Python based > ERP software. It is quite serious application and I feel > unconfortable with not having type checking. I do not say language > should be static, but having checking method signature > is big wi

Re: Creating type evaluation annotation

2018-12-06 Thread Terry Reedy
On 12/6/2018 5:48 AM, Marek Mosiewicz wrote: I'm Java developer,but had some experience with Python based ERP software. It is quite serious application and I feel unconfortable with not having type checking. I do not say language should be static, but having checking method signature is big win.

Creating type evaluation annotation

2018-12-06 Thread Marek Mosiewicz
I'm Java developer,but had some experience with Python based ERP software. It is quite serious application and I feel unconfortable with not having type checking. I do not say language should be static, but having checking method signature is big win. For example in refactoring. I know that Python

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