some typings
This commit is contained in:
parent
4d64879c29
commit
15d5ea017c
@ -17,8 +17,8 @@ class ResizingTabWidget(QTabWidget):
|
||||
self.setSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Minimum)
|
||||
self.setGeometry(0, 0, 20, 20)
|
||||
|
||||
self.trade_in_collections = {}
|
||||
self.trade_out_collections = {}
|
||||
self.trade_in_collections: Dict[int, TradeCollection] = {}
|
||||
self.trade_out_collections: Dict[int, TradeCollection] = {}
|
||||
self.setTabsClosable(True)
|
||||
self.tabCloseRequested.connect(self.del_tab)
|
||||
|
||||
|
@ -140,7 +140,7 @@ class TradeCollection(QWidget):
|
||||
self.main_layout.setContentsMargins(0, 0, 0, 0)
|
||||
self.setContentsMargins(0, 0, 0, 0)
|
||||
self.setLayout(self.main_layout)
|
||||
self.trades = {}
|
||||
self.trades: Dict[int. TradeWidget] = {}
|
||||
|
||||
def childEvent(self, event: QtCore.QChildEvent) -> None:
|
||||
if event.removed() or event.added():
|
||||
|
Loading…
x
Reference in New Issue
Block a user