def __init__(self, parent): self._init_ctrls(parent) icon = wx.EmptyIcon() icon.CopyFromBitmap(Preferences.IS.load('Images/ModuleFinder.png')) self.SetIcon(icon) # adjust sizes for different platforms resetMinSize(self) self.SetMinSize(wx.Size(309, 106)) self.SetSizerAndFit(self.mainSizer)
def __init__(self, parent, currentPyIntpPath=''): self.pythonInterpreterPath = '' self.pythonInterpreterPath = currentPyIntpPath self.installPathFilter = '(*.exe)|*.exe)' self.installPathFilter = self.getInstallPathFilter() self._init_ctrls(parent) # adjust sizes for different platforms resetMinSize(self) self.gdcInstallPath.SetMinSize(wx.Size(242, 146)) self.SetSizerAndFit(self.mainSizer) self.populateFoundInstallations() self.gdcInstallPath.GetChildren()[0].Bind( wx.EVT_LEFT_DCLICK, self.OnGdcinstallpathLeftDclick)
def __init__(self, parent, currentPyIntpPath=''): self.pythonInterpreterPath = '' self.pythonInterpreterPath = currentPyIntpPath self.installPathFilter = '(*.exe)|*.exe)' self.installPathFilter = self.getInstallPathFilter() self._init_ctrls(parent) # adjust sizes for different platforms resetMinSize(self) self.gdcInstallPath.SetMinSize(wx.Size(242, 146)) self.SetSizerAndFit(self.mainSizer) self.populateFoundInstallations() self.gdcInstallPath.GetChildren()[0].Bind(wx.EVT_LEFT_DCLICK, self.OnGdcinstallpathLeftDclick)