Skip to content

Commit

Permalink
Fix function plotter in embed example
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremysanders committed Aug 18, 2014
1 parent 73616f8 commit 55341df
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Bug fixes
* Do not crash if selecting siblings of document widget
* Fix accidental modification of data by line widget
* Improve PDF bounding box rounding to prevent chopping near edge
* Fix function plotter in embedding

Features of package:
Plotting features:
Expand Down
9 changes: 9 additions & 0 deletions veusz/embed_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from .compat import citems, pickle
from .windows.simplewindow import SimpleWindow
from . import document
from . import setting
from . import qtall as qt4

"""Program to be run by embedding interface to run Veusz commands."""
Expand Down Expand Up @@ -57,6 +58,14 @@ def __init__(self, title, doc=None, hidden=False):
self.ci.addCommand('SetAntiAliasing', self.cmdSetAntiAliasing)
self.ci.addCommand('_apiVersion', self.cmd_apiVersion)

setting.transient_settings['unsafe_mode'] = True

self.document.sigLog.connect(self.logEmitted)

def logEmitted(self, msg):
"""Write anything logged to stderr."""
sys.stderr.write(msg + '\n')

def cmdClose(self):
"""Close()
Expand Down

0 comments on commit 55341df

Please sign in to comment.