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.
- {gui_utilities-1.3.30 → gui_utilities-1.3.35}/PKG-INFO +1 -1
- {gui_utilities-1.3.30 → gui_utilities-1.3.35}/gui_utilities/gui_utilities.py +9 -7
- {gui_utilities-1.3.30 → gui_utilities-1.3.35}/gui_utilities.egg-info/PKG-INFO +1 -1
- {gui_utilities-1.3.30 → gui_utilities-1.3.35}/pyproject.toml +1 -1
- {gui_utilities-1.3.30 → gui_utilities-1.3.35}/LICENSE +0 -0
- {gui_utilities-1.3.30 → gui_utilities-1.3.35}/README.md +0 -0
- {gui_utilities-1.3.30 → gui_utilities-1.3.35}/gui_utilities/icons/focused_hide_text_icon.png +0 -0
- {gui_utilities-1.3.30 → gui_utilities-1.3.35}/gui_utilities/icons/focused_show_text_icon.png +0 -0
- {gui_utilities-1.3.30 → gui_utilities-1.3.35}/gui_utilities/icons/hide_text_icon.png +0 -0
- {gui_utilities-1.3.30 → gui_utilities-1.3.35}/gui_utilities/icons/show_text_icon.png +0 -0
- {gui_utilities-1.3.30 → gui_utilities-1.3.35}/gui_utilities/tlds/tlds_list.txt +0 -0
- {gui_utilities-1.3.30 → gui_utilities-1.3.35}/gui_utilities.egg-info/SOURCES.txt +0 -0
- {gui_utilities-1.3.30 → gui_utilities-1.3.35}/gui_utilities.egg-info/dependency_links.txt +0 -0
- {gui_utilities-1.3.30 → gui_utilities-1.3.35}/gui_utilities.egg-info/requires.txt +0 -0
- {gui_utilities-1.3.30 → gui_utilities-1.3.35}/gui_utilities.egg-info/top_level.txt +0 -0
- {gui_utilities-1.3.30 → gui_utilities-1.3.35}/setup.cfg +0 -0
|
@@ -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 =
|
|
385
|
+
font_color = placeholder_font_color,
|
|
384
386
|
font_family = font_family,
|
|
385
387
|
font_size = font_size,
|
|
386
|
-
background_color =
|
|
387
|
-
hover_background_color =
|
|
388
|
-
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():
|
|
File without changes
|
|
File without changes
|
{gui_utilities-1.3.30 → gui_utilities-1.3.35}/gui_utilities/icons/focused_hide_text_icon.png
RENAMED
|
File without changes
|
{gui_utilities-1.3.30 → gui_utilities-1.3.35}/gui_utilities/icons/focused_show_text_icon.png
RENAMED
|
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
|