gui-utilities 1.3.30__tar.gz → 1.3.35__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 gui-utilities might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gui_utilities
3
- Version: 1.3.30
3
+ Version: 1.3.35
4
4
  Summary: Librería de utilidades gráficas en PyQt6
5
5
  Author-email: Guido Iván Gross <grossguidoivan@gmail.com>
6
6
  Requires-Python: >=3.8
@@ -183,9 +183,10 @@ def create_label(
183
183
  disabled_font_color = "#888888",
184
184
  disabled_background_color = "transparent",
185
185
  disabled_border_width = 0,
186
- disabled_border_color = "#4a4a4a"
186
+ disabled_border_color = "#4a4a4a",
187
+ parent = None
187
188
  ):
188
- label = QLabel(text)
189
+ label = QLabel(text, parent)
189
190
  padding_left_value = padding_left if padding_left is not None else padding
190
191
  padding_top_value = padding_top if padding_top is not None else padding
191
192
  padding_right_value = padding_right if padding_right is not None else padding
@@ -315,6 +316,7 @@ def create_text_box(
315
316
  border_width = 2,
316
317
  border_color = "#5c5c5c",
317
318
  border_radius = 0,
319
+ placeholder_font_color = "#888888",
318
320
  hover_background_color = "#333333",
319
321
  hover_border_width = 3,
320
322
  hover_border_color = "#777777",
@@ -380,15 +382,15 @@ def create_text_box(
380
382
  html_placeholder = latex_to_html(placeholder_text)
381
383
  placeholder_label = create_label(
382
384
  text = html_placeholder,
383
- font_color = font_color,
385
+ font_color = placeholder_font_color,
384
386
  font_family = font_family,
385
387
  font_size = font_size,
386
- background_color = background_color,
387
- hover_background_color = hover_background_color,
388
- disabled_background_color = disabled_background_color,
388
+ background_color = "transparent",
389
+ hover_background_color = "transparent",
390
+ disabled_background_color = "transparent",
391
+ parent = text_box
389
392
  )
390
393
  placeholder_label.setTextFormat(Qt.TextFormat.RichText)
391
- placeholder_label.setAttribute(Qt.WidgetAttribute.WA_TransparentForMouseEvents)
392
394
  placeholder_label.show()
393
395
 
394
396
  def update_placeholder_visibility():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gui_utilities
3
- Version: 1.3.30
3
+ Version: 1.3.35
4
4
  Summary: Librería de utilidades gráficas en PyQt6
5
5
  Author-email: Guido Iván Gross <grossguidoivan@gmail.com>
6
6
  Requires-Python: >=3.8
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "gui_utilities"
3
- version = "1.3.30"
3
+ version = "1.3.35"
4
4
  description = "Librería de utilidades gráficas en PyQt6"
5
5
  authors = [{name = "Guido Iván Gross", email = "grossguidoivan@gmail.com"}]
6
6
  requires-python = ">=3.8"
File without changes
File without changes
File without changes