~ubuntu-branches/debian/stretch/bibus/stretch

« back to all changes in this revision

Viewing changes to StyleEditor/FormatEditor.py

  • Committer: Package Import Robot
  • Author(s): Jan Beyer
  • Date: 2014-09-02 21:54:07 UTC
  • mfrom: (4.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20140902215407-0002tj24epm8y6u8
Tags: 1.5.2-4
* Add a patch for compatibility with python-wxgtk3.0 (Closes: #758943)
  - Reworked patching bibOOo/bibOOoBase.py as separate patch
* Standards-Version 3.9.5 (no changes needed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
class FormatEditor(wx.Dialog):
35
35
        def __init__(self, *args, **kwds):
36
 
                #kwds["style"] = wx.TAB_TRAVERSAL | wx.CAPTION | wx.MINIMIZE_BOX | wx.MAXIMIZE_BOX | wx.THICK_FRAME
 
36
                #kwds["style"] = wx.TAB_TRAVERSAL | wx.CAPTION | wx.MINIMIZE_BOX | wx.MAXIMIZE_BOX | wx.RESIZE_BORDER
37
37
                kwds["style"] = wx.DEFAULT_FRAME_STYLE
38
38
                self.filename = kwds['filename']
39
39
                del kwds['filename']
130
130
                        wx.MessageBox(_("The style name is not correct, please avoid: '/' under linux; '\\' and ':' under Windows"),_("Style name"),style=wx.OK|wx.ICON_ERROR)
131
131
 
132
132
#       def SaveAs(self,evt):
133
 
#               self.filename = wx.FileSelector(_('Where to save the style file?'), flags = wx.SAVE | wx.OVERWRITE_PROMPT)
 
133
#               self.filename = wx.FileSelector(_('Where to save the style file?'), flags = wx.FD_SAVE | wx.FD_OVERWRITE_PROMPT)
134
134
#               #print "%r"%self.filename
135
135
#               if self.filename:
136
136
#                       self.Save(evt)