-
Notifications
You must be signed in to change notification settings - Fork 0
Home
NNNIC edited this page Oct 14, 2018
·
8 revisions
Welcome to the psgg-python-sample wiki!
The below is using pre-release version.
- Windows 10
- SYN-G-GEN
- Python
(1) Select Python STARTER KIT.
(2) Set the state machine name to "TestControl".
(3) Set the document folder to "c:\hoge".
(4) Set the source folder to "c:\hoge".
(5) Create!
Copy psgg-c-sample/reference/Test.py to c:\hoge
Open Test.py using IDLE and run then the shell shows as below.
- Create a new state and connect.
Create a new state and input "printf("Hello!"); in 'init' cell.
![]()
- Create a branch situation.
(1) Create as below.
![]()
(2) Open "implement source" and input code below.
def select_yes_or_no(self) : i = random.randrange(10) # Note: import random print(i) self.m_bYesNo = i % 2 == 0
(3) run Test.py