1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Flake8 tweaks.

This commit is contained in:
Joe R 2023-09-27 20:26:52 -04:00
parent a28aaeeb4f
commit 529e8c006f
2 changed files with 3 additions and 2 deletions

View file

@ -20,7 +20,7 @@ class Toast(Label, LBase):
self.duration = 4.0 self.duration = 4.0
self.tsize = self.size self.tsize = self.size
self.rsize = [2,] self.rsize = [2, ]
self.hook = None self.hook = None
with self.canvas.before: with self.canvas.before:
Color(0.2, 0.2, 0.2, 0.85) Color(0.2, 0.2, 0.2, 0.85)
@ -36,7 +36,7 @@ class Toast(Label, LBase):
instance.texture_update() instance.texture_update()
width, height = instance.texture_size width, height = instance.texture_size
ads = height * 1.7 ads = height * 1.7
self.rsize = [(ads+height)/2.0,] self.rsize = [(ads+height)/2.0, ]
self.tsize = (width + ads, height + ads) self.tsize = (width + ads, height + ads)
# print('eval_size:',self.tsize,self.rsize) # print('eval_size:',self.tsize,self.rsize)

View file

@ -28,6 +28,7 @@ import re
from findcarddialog import connect_game_find_card_dialog, \ from findcarddialog import connect_game_find_card_dialog, \
destroy_find_card_dialog destroy_find_card_dialog
from fullpicturedialog import connect_game_full_picture_dialog, \ from fullpicturedialog import connect_game_full_picture_dialog, \
destroy_full_picture_dialog destroy_full_picture_dialog