コード例 #1
0
	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()
コード例 #2
0
ファイル: configBase.py プロジェクト: lulzbackup/cura
	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()
コード例 #3
0
	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()
コード例 #4
0
	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()
コード例 #5
0
 def OnExpertOpen(self, e):
     ecw = expertConfig.expertConfigWindow(
         lambda: self.scene.sceneUpdated())
     ecw.Centre()
     ecw.Show()
コード例 #6
0
ファイル: mainWindow.py プロジェクト: FMMT666/Cura
	def OnExpertOpen(self, e):
		ecw = expertConfig.expertConfigWindow()
		ecw.Centre()
		ecw.Show(True)
コード例 #7
0
	def OnExpertOpen(self, e):
		ecw = expertConfig.expertConfigWindow(lambda : self.scene.sceneUpdated())
		ecw.Centre()
		ecw.Show()
コード例 #8
0
ファイル: mainWindow.py プロジェクト: openube/Cura
 def OnExpertOpen(self, e):
     ecw = expertConfig.expertConfigWindow()
     ecw.Centre()
     ecw.Show(True)