Example #1
0
 def _StartInkscape(self):
     svgfile = self._getSVGpath()
     open_inkscape = True
     if not self.GetCTRoot().CheckProjectPathPerm():
         dialog = wx.MessageDialog(
             self.GetCTRoot().AppFrame,
             _("You don't have write permissions.\nOpen Inkscape anyway ?"),
             _("Open Inkscape"), wx.YES_NO | wx.ICON_QUESTION)
         open_inkscape = dialog.ShowModal() == wx.ID_YES
         dialog.Destroy()
     if open_inkscape:
         if not os.path.isfile(svgfile):
             svgfile = None
         open_svg(svgfile)
Example #2
0
 def _StartInkscape(self):
     svgfile = self._getSVGpath()
     open_inkscape = True
     if not self.GetCTRoot().CheckProjectPathPerm():
         dialog = wx.MessageDialog(self.GetCTRoot().AppFrame,
                                   _("You don't have write permissions.\nOpen Inkscape anyway ?"),
                                   _("Open Inkscape"),
                                   wx.YES_NO|wx.ICON_QUESTION)
         open_inkscape = dialog.ShowModal() == wx.ID_YES
         dialog.Destroy()
     if open_inkscape:
         if not os.path.isfile(svgfile):
             svgfile = None
         open_svg(svgfile)