Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
se3xa3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hameed Andy
se3xa3
Commits
22b91906
Commit
22b91906
authored
6 years ago
by
Hameed Andy
Browse files
Options
Downloads
Patches
Plain Diff
Fixed display window header title | changed coordinates of window location
parent
370ee91b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
BlankProjectTemplate/src/Interface.py
+5
-0
5 additions, 0 deletions
BlankProjectTemplate/src/Interface.py
BlankProjectTemplate/src/theme.py
+1
-1
1 addition, 1 deletion
BlankProjectTemplate/src/theme.py
with
6 additions
and
1 deletion
BlankProjectTemplate/src/Interface.py
+
5
−
0
View file @
22b91906
...
...
@@ -3,6 +3,11 @@
# @brief implements the main interface of this game
# @date 11/09/2018
#importing necessary libraries
x
=
10
y
=
40
import
os
os
.
environ
[
'
SDL_VIDEO_WINDOW_POS
'
]
=
"
%d,%d
"
%
(
x
,
y
)
import
pygame
,
sys
import
highscore
,
theme
...
...
This diff is collapsed.
Click to expand it.
BlankProjectTemplate/src/theme.py
+
1
−
1
View file @
22b91906
...
...
@@ -56,7 +56,7 @@ class Themes():
theme
.
fill
(
white_green
)
mousepos
=
pygame
.
mouse
.
get_pos
()
#checking mouse position
mouseclick
=
pygame
.
mouse
.
get_pressed
()
#checking mouse pressed
pygame
.
display
.
set_caption
(
"
Choose Theme
"
)
pygame
.
display
.
set_caption
(
"
Snake 2.o
"
)
Themes
.
custom_text
(
'
Choose Your Theme
'
,
"
Roboto-Light.ttf
"
,
45
,[
96
,
96
,
96
],(
70
,
50
),
theme
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment