Re: [Tutor] Tkinter layout question

2017-04-24 Thread Phil
On Sun, 23 Apr 2017 11:28:51 +0200 Peter Otten <__pete...@web.de> wrote: > Consider the function make_a_cake(). If you use it > > eat_a_piece_of(make_a_cake()) > eat_a_piece_of(make_a_cake()) > > that's short for > > one_cake = make_a_cake() > eat_a_piece_of(one_cake) > > another_cake = make_a

Re: [Tutor] classproperty: readonly and inheritance - not more needed

2017-04-24 Thread Thomas Güttler
Now the "not read-only" part: Foo.my_prop = "whatever" Foo.my_prop 'whatever' You now have a string attribute, the property is lost. Methods behave the same way and it's generally not a problem, but you should at least be aware of this behaviour. Yes, now I understand you. Thank you Regard

Re: [Tutor] Tkinter layout question

2017-04-24 Thread Alan Gauld via Tutor
On 24/04/17 01:50, Phil wrote: On Mon, 24 Apr 2017 09:24:55 +1000 Phil wrote: On Sun, 23 Apr 2017 09:39:54 +0200 Sibylle Koczian wrote: Am 20.04.2017 um 14:43 schrieb Alan Gauld via Tutor: Its not too bad you can map the large 9x9 table to the smaller units using divmod() So the 7th eleme

Re: [Tutor] Tkinter layout question

2017-04-24 Thread Alan Gauld via Tutor
On 24/04/17 20:02, Alan Gauld via Tutor wrote: And you could wrap that up as a pair of get/set functions if you so wished. def get_sudoku_grid(x,y): # code above return item def set_sudoku_grid(x,y,value): #code above item = value I should point out that to use my table code f

Re: [Tutor] Tkinter layout question

2017-04-24 Thread Phil
On Mon, 24 Apr 2017 20:02:32 +0100 Alan Gauld via Tutor wrote: > On 24/04/17 01:50, Phil wrote: > > On Mon, 24 Apr 2017 09:24:55 +1000 > > Phil wrote: > > > >> On Sun, 23 Apr 2017 09:39:54 +0200 > >> Sibylle Koczian wrote: > >> > >>> Am 20.04.2017 um 14:43 schrieb Alan Gauld via Tutor: > I

[Tutor] How to display radiobutton window with no buttons selected?

2017-04-24 Thread boB Stepp
Win7-64bit, Python 3.6.1 When I run the following code, the radiobutton window initially displays with *all* buttons apparently selected. However, when the "Status" button is clicked on, the status is as expected, an empty string for the checked_radiobutton StringVar(). =