Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bastien Terrier
xeyes_sentences
Commits
64eb9925
Commit
64eb9925
authored
May 24, 2018
by
Bastien Terrier
Browse files
get screen size
parent
177bab3b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/resources.py
View file @
64eb9925
import
sys
#args
import
gtk
#screen size
i_screen_width
=
gtk
.
gdk
.
screen_width
()
i_screen_height
=
gtk
.
gdk
.
screen_height
()
s_filename
=
"../xeyes_sentences.sh"
...
...
@@ -9,7 +13,7 @@ else:
s_xeyes_command
=
"xeyes -geometry {0}x{0}-"
.
format
(
i_xeyes_size
)
global_x_pos
=
100
0
global_x_pos
=
i_screen_width
-
5
0
global_y_pos
=
300
local_x_pos
=
0
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment