jbqt 0.1.13__tar.gz → 0.1.14__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of jbqt might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: jbqt
3
- Version: 0.1.13
3
+ Version: 0.1.14
4
4
  Summary:
5
5
  Author: Joseph Bochinski
6
6
  Author-email: stirgejr@gmail.com
@@ -45,8 +45,9 @@ args = parser.parse_args()
45
45
  THEMES_DIR = "/usr/share/icons"
46
46
 
47
47
 
48
+ # TODO: fix type checking
48
49
  class Toast(QLabel):
49
- def __init__(self, text: str, parent: QWidget = None, duration_ms: int = 1500):
50
+ def __init__(self, text: str, parent: QWidget = None, duration_ms: int = 1500): # type: ignore
50
51
  super().__init__(parent)
51
52
 
52
53
  self.setText(text)
@@ -97,8 +98,8 @@ class Window(QMainWindow):
97
98
  central_widget = QWidget()
98
99
  self.setCentralWidget(central_widget)
99
100
 
100
- self.layout = QVBoxLayout()
101
- central_widget.setLayout(self.layout)
101
+ self.layout = QVBoxLayout() # type: ignore
102
+ central_widget.setLayout(self.layout) # type: ignore
102
103
 
103
104
  self.search_bar = QLineEdit()
104
105
  self.search_bar.setPlaceholderText("Search icons...")
@@ -106,8 +107,8 @@ class Window(QMainWindow):
106
107
 
107
108
  self.table = QTableWidget()
108
109
  self.table.setColumnCount(4) # 4 columns of icons
109
- self.table.horizontalHeader().setVisible(False)
110
- self.table.verticalHeader().setVisible(False)
110
+ self.table.horizontalHeader().setVisible(False) # type: ignore
111
+ self.table.verticalHeader().setVisible(False) # type: ignore
111
112
  self.table.setIconSize(QSize(64, 64))
112
113
  self.table.setShowGrid(False)
113
114
  self.table.setEditTriggers(QTableWidget.EditTrigger.NoEditTriggers)
@@ -122,8 +123,8 @@ class Window(QMainWindow):
122
123
  """
123
124
  )
124
125
 
125
- self.layout.addWidget(self.search_bar)
126
- self.layout.addWidget(self.table)
126
+ self.layout.addWidget(self.search_bar) # type: ignore
127
+ self.layout.addWidget(self.table) # type: ignore
127
128
 
128
129
  cur_theme = QIcon.themeName()
129
130
  self.icon_src = "standard"
@@ -154,7 +155,7 @@ class Window(QMainWindow):
154
155
  item = self.table.item(row, column)
155
156
  if item and item.text():
156
157
  text = f'"{item.text()}"' if args.add_quotes else item.text()
157
- QApplication.clipboard().setText(text)
158
+ QApplication.clipboard().setText(text) # type: ignore
158
159
  print(f"Copied '{item.text()}' to clipboard")
159
160
  Toast(f"Copied '{item.text()}'", parent=self).show()
160
161
 
@@ -191,7 +192,7 @@ class Window(QMainWindow):
191
192
  case _:
192
193
 
193
194
  pixmapi = getattr(QStyle.StandardPixmap, name)
194
- icon = self.style().standardIcon(pixmapi)
195
+ icon = self.style().standardIcon(pixmapi) # type: ignore
195
196
 
196
197
  item = QTableWidgetItem(name)
197
198
  item.setIcon(icon)
@@ -11,13 +11,14 @@ def debug_scroll_pos(func: Callable):
11
11
  if QtGlobalRefs.main_window:
12
12
  focus = QtGlobalRefs.main_window.focusWidget()
13
13
  print(f"scroll pos {func.__name__}")
14
- print("before", QtGlobalRefs.scroll_area.verticalScrollBar().value(), focus)
14
+ # TODO: fix type checking
15
+ print("before", QtGlobalRefs.scroll_area.verticalScrollBar().value(), focus) # type: ignore
15
16
  result = func(self, *args, **kwargs)
16
17
 
17
18
  if QtGlobalRefs.main_window:
18
19
  focus = QtGlobalRefs.main_window.focusWidget()
19
20
  print(
20
- f"after {QtGlobalRefs.scroll_area.verticalScrollBar().value()} {focus}\n"
21
+ f"after {QtGlobalRefs.scroll_area.verticalScrollBar().value()} {focus}\n" # type: ignore
21
22
  )
22
23
 
23
24
  return result
@@ -32,13 +33,14 @@ def debug_scroll_pos_no_args(func: Callable):
32
33
  focus = None
33
34
  if QtGlobalRefs.main_window:
34
35
  focus = QtGlobalRefs.main_window.focusWidget()
36
+ # TODO: fix type checking
35
37
  print(f"scroll pos {func.__name__}")
36
- print("before", QtGlobalRefs.scroll_area.verticalScrollBar().value(), focus)
38
+ print("before", QtGlobalRefs.scroll_area.verticalScrollBar().value(), focus) # type: ignore
37
39
  result = func(self)
38
40
  if QtGlobalRefs.main_window:
39
41
  focus = QtGlobalRefs.main_window.focusWidget()
40
42
  print(
41
- f"after {QtGlobalRefs.scroll_area.verticalScrollBar().value()} {focus}\n"
43
+ f"after {QtGlobalRefs.scroll_area.verticalScrollBar().value()} {focus}\n" # type: ignore
42
44
  )
43
45
 
44
46
  return result
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "jbqt"
7
- version = "0.1.13"
7
+ version = "0.1.14"
8
8
  description = ""
9
9
  authors = [ "Joseph Bochinski <stirgejr@gmail.com>",]
10
10
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes