scripting
- paco_espinola
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 5
- Thank you received: 0
- Joël Cugnoni
-
- Offline
- Moderator
-
18 years 1 month ago #1158
by Joël Cugnoni
Joël Cugnoni - a.k.a admin
www.caelinux.com
Replied by Joël Cugnoni on topic Re:scripting
Hi,
there are 2 ways of posting a code or script.
Either:
use the CODE button (inserts the \"[ code ]\" markup) in the bar above the text area to encapsulate your code by keeping the formating.
Or
attach your code/script to the post in a ZIP file
see these examples
[code:1]
def Fonction(event):
global x1, x2, y1, y2, n,i,ligne,angle, x
x1, x2, y1, y2, n,i,ligne,angle,x = 0,0,0,0,0,1,480/2,0, 0
while n .....
[/code:1]
<br><br>Post edited by: admin, at: 2007/03/24 22:43
there are 2 ways of posting a code or script.
Either:
use the CODE button (inserts the \"[ code ]\" markup) in the bar above the text area to encapsulate your code by keeping the formating.
Or
attach your code/script to the post in a ZIP file
see these examples
[code:1]
def Fonction(event):
global x1, x2, y1, y2, n,i,ligne,angle, x
x1, x2, y1, y2, n,i,ligne,angle,x = 0,0,0,0,0,1,480/2,0, 0
while n .....
[/code:1]
Attachment pygraph.zip not found
Joël Cugnoni - a.k.a admin
www.caelinux.com
- Andy Foan
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 0
17 years 2 months ago #1780
by Andy Foan
Replied by Andy Foan on topic Re:scripting
In Salome-Mech, what path do I save a python script file to so it can be started from the python window, and what do I type there to start the script file?
- Andy Foan
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 0
17 years 2 months ago #1783
by Andy Foan
Replied by Andy Foan on topic Re:scripting
Looks like the home\caelinux folder works ok, so put the script there in a text file called scriptfile.py then call it from the Salome python window by typing
>>> import scriptfile
>>> import scriptfile
Moderators: catux
Time to create page: 0.136 seconds