Skip to content

Commit 7734727

Browse files
2 parents 3d39905 + 0d2b9e2 commit 7734727

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

ui/qt/gridlayout1.py

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def init_gui(self):
5858
self.grid.addWidget(self.button9, 2, 2)
5959

6060
self.grid.setContentsMargins(20, 40, 20, 40)
61+
#self.grid.setContentsMargins(0,0,0,0)
6162

6263
self.grid.setHorizontalSpacing(20)
6364
self.grid.setVerticalSpacing(20)

ui/qt/item_table_sorted.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88

99
import sys
1010

11-
from qtpy.QtWidgets import QTableWidgetItem, QTableWidget, QWidget, QVBoxLayout, QApplication
11+
from qtpy.QtWidgets import (
12+
QTableWidgetItem,
13+
QTableWidget,
14+
QWidget,
15+
QVBoxLayout,
16+
QApplication,
17+
)
1218
from qtpy.QtCore import Qt
1319

1420
import numpy as np
@@ -17,6 +23,7 @@
1723

1824
class CustomQTableWidgetItem(QTableWidgetItem):
1925
"""Custom QTableWidgetItem class"""
26+
2027
def __init__(self, value):
2128
"""Class constructor"""
2229
super().__init__(str(value))
@@ -66,7 +73,6 @@ def __init__(self):
6673

6774
self.item_table.show()
6875

69-
7076
def update_controls(self):
7177
"""Update table control"""
7278

0 commit comments

Comments
 (0)