Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Potron Corentin
seven-colors
Commits
1f0f86aa
Commit
1f0f86aa
authored
Sep 13, 2018
by
Potron Corentin
Browse files
Increase recurstion limit + some tweaks to enable map 60x60
parent
e6e750f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.pyw
View file @
1f0f86aa
...
...
@@ -22,11 +22,11 @@ def launch_game():
if
__name__
==
"__main__"
:
# This prevent RecursionError with big map
sys
.
setrecursionlimit
(
3
000
)
sys
.
setrecursionlimit
(
5
000
)
# Setup main menu window and content frame
main_window
=
tkinter
.
Tk
()
main_window
.
title
(
'
Seven Colors -
Menu principal'
)
main_window
.
title
(
'Menu principal'
)
frame_window
=
tkinter
.
Frame
(
main_window
,
padx
=
20
,
pady
=
20
)
frame_window
.
pack
(
fill
=
'both'
,
expand
=
True
)
...
...
@@ -64,8 +64,8 @@ if __name__ == "__main__":
size_x
=
tkinter
.
Scale
(
label_frame_game
,
orient
=
'horizontal'
,
from_
=
1
,
to
=
5
0
,
from_
=
5
,
to
=
6
0
,
resolution
=
1
,
length
=
170
)
size_x
.
grid
(
row
=
0
,
column
=
1
)
...
...
@@ -74,8 +74,8 @@ if __name__ == "__main__":
size_y
=
tkinter
.
Scale
(
label_frame_game
,
orient
=
'horizontal'
,
from_
=
1
,
to
=
5
0
,
from_
=
5
,
to
=
6
0
,
resolution
=
1
,
length
=
170
)
size_y
.
grid
(
row
=
1
,
column
=
1
)
...
...
@@ -85,7 +85,7 @@ if __name__ == "__main__":
label_frame_game
,
orient
=
'horizontal'
,
from_
=
0
,
to
=
3
0
,
to
=
2
0
,
resolution
=
1
,
length
=
170
)
size_a
.
grid
(
row
=
2
,
column
=
1
)
...
...
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