Skip to content

Commit e07bb8e

Browse files
committed
atualização
1 parent 5200da6 commit e07bb8e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Projetos/calculadora_iphone.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
"""Interface gráfica estilo iPhone feita com Flet."""
22
from decimal import Decimal
3-
43
import flet as ft
5-
import flet.colors as colors
4+
from flet import colors
65

76
# Lista de botões da calculadora, com informações sobre operadores, cores de fonte e fundo.
87

@@ -53,7 +52,7 @@ def calculate(operator, value_at):
5352
value /= 100
5453
elif operator == "±":
5554
value = -value
56-
except:
55+
except Exception:
5756
return "Error"
5857
digits = min(abs(Decimal(value).as_tuple().exponent), 5)
5958
return format(value, f".{digits}f")

0 commit comments

Comments
 (0)