Merge pull request #1430 from PySimpleGUI/Dev-latest

Changed how no_titlebar is implemented on linux
This commit is contained in:
MikeTheWatchGuy 2019-05-16 17:04:43 -04:00 committed by GitHub
commit c0c582b492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -6136,7 +6136,10 @@ def ConvertFlexToTK(MyFlexForm):
InitializeResults(MyFlexForm)
try:
if MyFlexForm.NoTitleBar:
MyFlexForm.TKroot.wm_overrideredirect(True)
if sys.platform == 'linux':
MyFlexForm.TKroot.wm_attributes("-type","splash")
else:
MyFlexForm.TKroot.wm_overrideredirect(True)
except:
pass
PackFormIntoFrame(MyFlexForm, master, MyFlexForm)