mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Cast various floats to ints so we don't get warnings.
This commit is contained in:
parent
9181c94e05
commit
d424836f3a
2 changed files with 3 additions and 1 deletions
|
|
@ -401,7 +401,7 @@ class Frame(Widget):
|
|||
Qd.SetPenState(penstate)
|
||||
|
||||
def _darkencolor((r, g, b)):
|
||||
return 0.75 * r, 0.75 * g, 0.75 * b
|
||||
return int(0.75 * r), int(0.75 * g), int(0.75 * b)
|
||||
|
||||
class BevelBox(Widget):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue