Cast varible type to int

pull/544/head
Holger Müller 2022-09-15 07:51:28 +02:00
rodzic 4159c70558
commit d86cbec7c4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 2FDB49E81EAE6622
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -95,7 +95,7 @@ class SmithChart(SquareChart):
if swr <= 1:
continue
gamma = (swr - 1) / (swr + 1)
r = gamma * self.dim.width // 2
r = int(gamma * self.dim.width / 2)
qp.drawEllipse(QtCore.QPoint(center_x, center_y), r, r)
qp.drawText(
QtCore.QRect(center_x - 50, center_y - 4 + r, 100, 20),