FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PySimpleGUI/DemoPrograms/Demo_Borderless_Window.py at master · PySimpleGUI/PySimpleGUI · GitHub
PySimpleGUI
/
PySimpleGUI
Public
Notifications
You must be signed in to change notification settings
Fork
1.8k
Star
13.8k
Code
Issues
708
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
PySimpleGUI
/
DemoPrograms
/
Demo_Borderless_Window.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
40 lines (32 loc) · 1.45 KB
Breadcrumbs
PySimpleGUI
/
DemoPrograms
/
Demo_Borderless_Window.py
Copy path
File metadata and controls
40 lines (32 loc) · 1.45 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env python
import
PySimpleGUI
as
sg
"""
Copyright 2018-2026 PySimpleGUI. All rights reserved.
"""
# Turn off padding in order to get a really tight looking layout.
sg
.
theme
(
'Dark'
)
sg
.
set_options
(
element_padding
=
(
0
,
0
))
layout
=
[[
sg
.
Text
(
'User:'
,
pad
=
((
3
,
0
),
0
)),
sg
.
OptionMenu
(
values
=
(
'User 1'
,
'User 2'
),
size
=
(
20
,
1
)),
sg
.
Text
(
'0'
,
size
=
(
8
,
1
))],
[
sg
.
Text
(
'Customer:'
,
pad
=
((
3
,
0
),
0
)),
sg
.
OptionMenu
(
values
=
(
'Customer 1'
,
'Customer 2'
),
size
=
(
20
,
1
)),
sg
.
Text
(
'1'
,
size
=
(
8
,
1
))],
[
sg
.
Text
(
'Notes:'
,
pad
=
((
3
,
0
),
0
)),
sg
.
Input
(
size
=
(
44
,
1
),
background_color
=
'white'
,
text_color
=
'black'
)],
[
sg
.
Button
(
'Start'
,
button_color
=
(
'white'
,
'black'
)),
sg
.
Button
(
'Stop'
,
button_color
=
(
'gray50'
,
'black'
)),
sg
.
Button
(
'Reset'
,
button_color
=
(
'white'
,
'#9B0023'
)),
sg
.
Button
(
'Submit'
,
button_color
=
(
'gray60'
,
'springgreen4'
)),
sg
.
Button
(
'Exit'
,
button_color
=
(
'white'
,
'#00406B'
))]]
window
=
sg
.
Window
(
"Borderless Window"
,
layout
,
default_element_size
=
(
12
,
1
),
text_justification
=
'r'
,
auto_size_text
=
False
,
auto_size_buttons
=
False
,
no_titlebar
=
True
,
grab_anywhere
=
True
,
default_button_element_size
=
(
12
,
1
))
while
True
:
event
,
values
=
window
.
read
()
if
event
in
(
sg
.
WIN_CLOSED
,
'Exit'
):
break
Back
|
FazBrowse Home
|
New Git URL