homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients aoi.leslie, gpolo, terry.reedy
Date 2011年12月02日.23:18:47
SpamBayes Score 4.6629367e-14
Marked as misclassified No
Message-id <1322867928.39.0.54306369884.issue13519@psf.upfronthosting.co.za>
In-reply-to
Content
Running on Win 7, 3.2.2, IDLE, I get
''' 
Traceback (most recent call last):
 File "F:\Python\mypy\tem.py", line 19, in <module>
 the_rowconfigure_info = the_frame.rowconfigure(the_row_index)
 File "C:\Programs\Python32\lib\tkinter\__init__.py", line 1326, in grid_rowconfigure
 return self._grid_configure('rowconfigure', index, cnf, kw)
 File "C:\Programs\Python32\lib\tkinter\__init__.py", line 1279, in _grid_configure
 elif '.' in value:
TypeError: argument of type 'int' is not iterable
'''
(For tracker purposes, this is a graceful exit, not a crash - as in *nix segfault or equivalent Windows error box.)
'''
>>> help(Frame.rowconfigure)
Help on function grid_rowconfigure in module tkinter:
grid_rowconfigure(self, index, cnf={}, **kw)
 Configure row INDEX of a grid.
 
 Valid resources are minsize (minimum size of the row),
 weight (how much does additional space propagate to this row)
 and pad (how much space to let additionally).
'''
The above implies that setting uniform=1 (in your code) works because it is ignored. From docs on the web, it appears that 'uniform' is valid and is just missing from our doc string. It is different from the other three, though, in jperhaps not being restricted to int values.
You are right that (line 1259)
 def _grid_configure(self, command, index, cnf, kw):
expects strings (which is what tcl uses). I do not know enough, though, to know where the bug is. I do notice, however, that setting with a Python int matches online Python examples and that the code runs without the attempt to read the config.
History
Date User Action Args
2011年12月02日 23:18:48terry.reedysetrecipients: + terry.reedy, gpolo, aoi.leslie
2011年12月02日 23:18:48terry.reedysetmessageid: <1322867928.39.0.54306369884.issue13519@psf.upfronthosting.co.za>
2011年12月02日 23:18:47terry.reedylinkissue13519 messages
2011年12月02日 23:18:47terry.reedycreate

AltStyle によって変換されたページ (->オリジナル) /