[Bug] Tooltips are behind window when keep_on_top=True
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
Beginne damit, die bereitgestellte sg.Window-Reproduktion unter macOS 12.1 mit Python 3.10.5, PySimpleGUI 4.60.1.56 und tkinter 8.6.12 auszuführen. Untersuche das Tooltip-Verhalten, wenn modal=True und keep_on_top=True gesetzt sind; abgeschlossen ist die Aufgabe, wenn die Tooltips mit Fragezeichen über dem Fenster erscheinen, während das Fenster sein modalähnliches Verhalten beibehält.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Type of Issue (Enhancement, Error, Bug, Question)
Bug
Operating System
Mac version 12.1
PySimpleGUI Port (tkinter, Qt, Wx, Web)
tkinter
Versions
Version information can be obtained by calling sg.main_get_debug_data()
Or you can print each version shown in ()
Python version (sg.sys.version)
3.10.5 (main, Jun 23 2022, 17:15:25) [Clang 13.1.6 (clang-1316.0.21.2.5)]
PySimpleGUI Version (sg.__version__)
4.60.1.56
GUI Version (tkinter (sg.tclversion_detailed), PySide2, WxPython, Remi)
8.6.12
Your Experience In Months or Years (optional)
2 Years Python programming experience
3 Years Programming experience overall
No Have used another Python GUI Framework? (tkinter, Qt, etc) (yes/no is fine)
Troubleshooting
These items may solve your problem. Please check those you've done by changing - [ ] to - [X]
- Searched main docs for your problem www.PySimpleGUI.org
- Looked for Demo Programs that are similar to your goal Demos.PySimpleGUI.org
- If not tkinter - looked for Demo Programs for specific port
- For non tkinter - Looked at readme for your specific port if not PySimpleGUI (Qt, WX, Remi)
- Run your program outside of your debugger (from a command line)
- Searched through Issues (open and closed) to see if already reported Issues.PySimpleGUI.org
- Tried using the PySimpleGUI.py file on GitHub. Your problem may have already been fixed but not released
Detailed Description
When setting the window to keep_on_top=True the tooltips (on the question marks) appear to only display behind the window.
This window is provoked by pressing a button and it is important that it will be modal-like, not disapear without saving or closing.
The given inputs are then fed into an object and run through a stitching algorithm, but I removed that from the code as it has nothing to do eith the bug.
Code To Duplicate
A short program that isolates and demonstrates the problem (Do not paste your massive program, but instead 10-20 lines that clearly show the problem)
This pre-formatted code block is all set for you to paste in your bit of code:
layout = [[sg.Text('min_match_num', size=(15,1), font='_ 14'), sg.Input(default_text='40', size=(8,1), k='-MIN-', enable_events=True, font='_ 14'),
sg.Text('?', font='_ 14', size=(1,1), tooltip='Controls the minimum amount of overlap between stitched frames of the panorama. The smaller min_match_num is, the lesser the overlap. IT\'S BETTER TO TINKER WITH max_match_num!')],
[sg.Text('max_match_num', size=(15,1), font='_ 14'), sg.Input(default_text='100', size=(8,1), k='-MAX-', enable_events=True, font='_ 14'),
sg.Text('?', font='_ 14', size=(1,1), tooltip='Controls the maximum amount of overlap between stitched frames of the panorama. The larger max_match_num is, the greater the overlap.')],
[sg.Text('focal length (f)', size=(15,1), font='_ 14'), sg.Input(default_text='3200', size=(8,1), k='-F-', enable_events=True, font='_ 14'),
sg.Text('?', font='_ 14', size=(1,1), tooltip='Controls the focal point of the panorama. The smaller f, the greater the curvature of the panorama. Rule of Thumb: The greater the angle the camera pans, the smaller f should be, and vice versa.')],
[sg.Text('resize_factor', size=(15,1), font='_ 14'), sg.Spin([1,2,3,4,5], initial_value=1, size=(4,1), k='-RESIZE-', enable_events=True, readonly=True, background_color='white', font='_ 14'),
sg.Text('?', font='_ 14', size=(1,1), tooltip='Controls the amount by which the quality decreases. Best for debuging and perfecting the appropriate parameters for a given video.')],
[sg.B('Save', font='_ 14')]]
window = sg.Window('Expert Mode', layout, text_justification='c', finalize=True, resizable=True, modal=True, keep_on_top=True)
while True:
event, values = window.read()
if event in ('Save', None):
break
if event in ('-MIN-', '-MAX-', '-F-'):
try:
int(values[event])
except ValueError:
window[event].update(values[event][:-1])
window.close()
del window
Sorry the layout seems a bit messy, it looks much better in VScode.
Screenshot, Sketch, or Drawing
- Vorherrschende Sprache
- Python
- Sterne
- 13.8k
- Forks
- 1.8k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus PySimpleGUI/PySimpleGUI
-
Bug Done - Install Dev Build (see docs for how) Platform Specific Issue - Linux Port - TK
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
PySimpleGUI/PySimpleGUI#6904 · 15 Kommentare ·
-
Bug Demo Programs Done - Install Dev Build (see docs for how) Interoperability Port - TK workaround available
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
PySimpleGUI/PySimpleGUI#6900 · 1 Kommentar ·
-
Done - Install Dev Build (see docs for how) enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
PySimpleGUI/PySimpleGUI#3251 · 12 Kommentare ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 74/100
PySimpleGUI/PySimpleGUI#6906 · 1 Kommentar · 1 Reaktion ·
-
Bug Done - Install Dev Build (see docs for how) Port - TK
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
PySimpleGUI/PySimpleGUI#6902 · 1 Kommentar ·
Alle Issues in PySimpleGUI/PySimpleGUI
Ähnliche Issues
-
essnmx good first issue
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
-
[Feature] 奇物选择添加优先级 Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
syfoud/Simulated_Scepter#174 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
Giskard-AI/giskard-oss#2840 · 1 Kommentar ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Offenarea: repo bug perceived difficulty: 2
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
yeti-platform/yeti#1380 ·