Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Franck Pommereau
/
snakes
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Franck Pommereau
2014-03-25 15:15:24 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9861bddff6db594467ed00628e36cebe709fddc7
9861bddf
1 parent
4836eece
show net within dialog
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
snakes/utils/abcd/simul.py
snakes/utils/simul/resources/simulator.css
snakes/utils/abcd/simul.py
View file @
9861bdd
...
...
@@ -58,7 +58,12 @@ class Simulator (BaseHTTPSimulator) :
def
init_model
(
self
)
:
return
self
.
res
[
"model.html"
]
%
self
.
info
def
init_ui
(
self
)
:
return
BaseHTTPSimulator
.
init_ui
(
self
)[:
-
1
]
return
BaseHTTPSimulator
.
init_ui
(
self
)[:
-
1
]
+
[{
"label"
:
"Show net"
,
"id"
:
"ui-shownet"
,
"href"
:
"#"
,
"script"
:
"dialog($('#model .petrinet').html())"
}]
def
init_help
(
self
)
:
help
=
BaseHTTPSimulator
.
init_help
(
self
)
help
.
update
({
"#model .abcd"
:
"ABCD source code"
,
...
...
snakes/utils/simul/resources/simulator.css
View file @
9861bdd
...
...
@@ -93,7 +93,8 @@ body {
}
#dialog-close
{
display
:
inline
;
/* TODO: fix position when dialog has a horizontal scrollbar */
display
:
block
;
float
:
right
;
border
:
solid
1px
#AAA
;
padding
:
5px
10px
;
...
...
Please
register
or
login
to post a comment