Esempio n. 1
0
    def __init__(self, parent, ID):
        wx.Dialog.__init__(self,parent, ID, title="Save file in")
        model = eDevModel()

        box = wx.BoxSizer(wx.VERTICAL)
        
        txt = wx.StaticText(self, -1, "Save file as:")
        box.Add(txt, 0, wx.LEFT|wx.TOP|wx.RIGHT, 3)
      
        archives = model.openURI("zip://")
        for i in range(len(archives)):
            (proto, archives[i]) = Tools.splitURI(archives[i])
        if len(archives) > 0: archive = archives[0]
        self.combo = wx.ComboBox(self, -1, choices=archives)
        self.combo.SetValue(archive)
        box.Add(self.combo, 0, wx.GROW|wx.ALL, 3)

        self.entry = wx.TextCtrl(self, -1)
        box.Add(self.entry, 0, wx.GROW|wx.ALL, 3)
        
        line = wx.StaticLine(self,-1, style=wx.LI_HORIZONTAL)
        box.Add(line,0, wx.GROW|wx.ALL, 3)
        
        btnbox = wx.StdDialogButtonSizer()
        
        ok_btn = wx.Button(self, wx.ID_OK)
        btnbox.AddButton(ok_btn)

        c_btn = wx.Button(self, wx.ID_CANCEL)
        btnbox.AddButton(c_btn)
        btnbox.Realize()
        box.Add(btnbox, 0, wx.GROW|wx.ALL, 5)
        self.SetSizer(box)
        box.Fit(self)
Esempio n. 2
0
 def __init__(self):
     self._d_notebook = None
     self._d_main_frame = None
     self._d_model = eDevModel()
     self._navigator = None
     self._editors = dict()
     self._logger = logging.getLogger("edef.dev")