def OnExpertOpen(self, e): from Cura.gui import expertConfig expert_sub_category = self.setting.getExpertSubCategory() if type(expert_sub_category) is list: expert_sub_category = expert_sub_category[self.ctrl.GetSelection()] ecw = expertConfig.expertConfigWindow(self.panel.main._callback, expert_sub_category) ecw.Centre() ecw.Show()
def resetSettings(self, e): dlg = wx.MessageDialog(self, 'This will reset all slicing settings to their defaults.\nAre you sure you would like to reset all slicing settings?', 'Reset all slice settings', wx.YES_NO | wx.ICON_QUESTION) result = dlg.ShowModal() == wx.ID_YES dlg.Destroy() if result: if not isinstance(self.ecw, expertConfig.expertConfigWindow) : self.ecw = expertConfig.expertConfigWindow(self) self.ecw.resetSettings() self.ecw.OnClose(e) self.scene.resetSlicingSettings()
def OnExpertOpen(self, e): if not isinstance(self.ecw, expertConfig.expertConfigWindow) : self.ecw = expertConfig.expertConfigWindow(self) self.ecw.Centre() self.ecw.Show(True) self.ecw.Raise() # self.ecw.Iconize(False) #Suppored to bring it back if it's minimized. Not needed because this window can't minimize else: self.ecw.Center() self.ecw.Show(True) self.ecw.Raise()
def OnExpertOpen(self, e): ecw = expertConfig.expertConfigWindow( lambda: self.scene.sceneUpdated()) ecw.Centre() ecw.Show()
def OnExpertOpen(self, e): ecw = expertConfig.expertConfigWindow() ecw.Centre() ecw.Show(True)
def OnExpertOpen(self, e): ecw = expertConfig.expertConfigWindow(lambda : self.scene.sceneUpdated()) ecw.Centre() ecw.Show()