Code: Alles auswählen
>>> (not True)*0.5
0.0
>>> (not False)*0.5
0.5
>>>
Code: Alles auswählen
>>> (not True)*0.5
0.0
>>> (not False)*0.5
0.5
>>>
Code: Alles auswählen
half_yoffset = yoffset / 2.0
....
for...
ypos = yorg + [0, half_yoffset][togglebit]
Code: Alles auswählen
for...
ypos = yorg + togglebit * 0.5 * yoffset
Code: Alles auswählen
master.state('zoomed')# maximiert automatisch das Fenster aus Vollbild
Code: Alles auswählen
master.winfo_screenwidth()
master.winfo_screenheight()
Code: Alles auswählen
for feld in range(1,3):
if spalten_nummer == UNGERADE :
for f in range(ungerade_spalten):
create_hex_polygon(spiel,xpos,ypos,hex_point_list,farbe)
xpos = xpos + (xoffset *2)
spalten_nummer = GERADE
xpos = xorg + xoffset
ypos = ypos + yoffset / 2
else :
for f in range(gerade_spalten):
create_hex_polygon(spiel,xpos,ypos,hex_point_list,farbe)
xpos = xpos + (xoffset *2)
spalten_nummer = UNGERADE
xpos = xorg
ypos = ypos + yoffset / 2