Permalink
Browse files

simplified hello.py sample

  • Loading branch information...
1 parent 90d52b9 commit dae14c45ad9384573b4bd2369c71077def0e179f @wojdyr committed Apr 20, 2012
Showing with 1 addition and 9 deletions.
  1. +1 −9 samples/hello.py
View
@@ -23,19 +23,11 @@ def save_session(self, filename):
self.execute("info state >'%s'" % filename)
f = Fityk()
-print f.get_info("version", True)
+print f.get_info("version")
print "ln(2) =", f.calculate_expr("ln(2)")
del f
g = GaussianFitter("nacl01.dat")
g.run()
g.save_session("tmp_save.fit")
-# output from commands can be handled by callback function in Python
-def show_msg(s):
- print "output:", s
-g.py_set_show_message(show_msg)
-
-# or it can be redirected to file
-g.redir_messages(sys.stderr)
-

0 comments on commit dae14c4

Please sign in to comment.