FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PySimpleGUI/Demo_Borderless_Window.py at master · ooTYoo/PySimpleGUI · GitHub
ooTYoo
/
PySimpleGUI
Public
forked from
PySimpleGUI/PySimpleGUI
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
PySimpleGUI
/
Demo_Borderless_Window.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (24 loc) · 1.26 KB
Breadcrumbs
PySimpleGUI
/
Demo_Borderless_Window.py
Copy path
File metadata and controls
31 lines (24 loc) · 1.26 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
import
PySimpleGUI
as
sg
"""
Turn off padding in order to get a really tight looking layout.
"""
sg
.
ChangeLookAndFeel
(
'Dark'
)
sg
.
SetOptions
(
element_padding
=
(
0
,
0
))
layout
=
[[
sg
.
T
(
'User:'
,
pad
=
((
3
,
0
),
0
)),
sg
.
OptionMenu
(
values
=
(
'User 1'
,
'User 2'
),
size
=
(
20
,
1
)),
sg
.
T
(
'0'
,
size
=
(
8
,
1
))],
[
sg
.
T
(
'Customer:'
,
pad
=
((
3
,
0
),
0
)),
sg
.
OptionMenu
(
values
=
(
'Customer 1'
,
'Customer 2'
),
size
=
(
20
,
1
)),
sg
.
T
(
'1'
,
size
=
(
8
,
1
))],
[
sg
.
T
(
'Notes:'
,
pad
=
((
3
,
0
),
0
)),
sg
.
In
(
size
=
(
44
,
1
),
background_color
=
'white'
,
text_color
=
'black'
)],
[
sg
.
ReadFormButton
(
'Start'
,
button_color
=
(
'white'
,
'black'
)),
sg
.
ReadFormButton
(
'Stop'
,
button_color
=
(
'gray50'
,
'black'
)),
sg
.
ReadFormButton
(
'Reset'
,
button_color
=
(
'white'
,
'#9B0023'
)),
sg
.
ReadFormButton
(
'Submit'
,
button_color
=
(
'gray60'
,
'springgreen4'
)),
sg
.
SimpleButton
(
'Exit'
,
button_color
=
(
'white'
,
'#00406B'
))]]
form
=
sg
.
FlexForm
(
"Time Tracker"
,
default_element_size
=
(
12
,
1
),
text_justification
=
'r'
,
auto_size_text
=
False
,
auto_size_buttons
=
False
,
no_titlebar
=
True
,
default_button_element_size
=
(
12
,
1
))
form
.
Layout
(
layout
)
while
True
:
button
,
values
=
form
.
Read
()
if
button
is
None
or
button
==
'Exit'
:
break
Back
|
FazBrowse Home
|
New Git URL