def openDialog(self): dialog = DateDialog(self) '''連結子視窗的內建訊號與主視窗的槽函數''' dialog.datetime_inner.dateTimeChanged.connect(self.deal_inner_slot) '''連結子視窗的自訂訊號與主視窗的槽函數''' dialog.Signal_OneParameter.connect(self.deal_emit_slot) dialog.show()
def openDialog(self): dialog = DateDialog(self) '''连接子窗口的内置信号与主窗口的槽函数''' dialog.datetime_inner.dateTimeChanged.connect(self.deal_inner_slot) '''连接子窗口的自定义信号与主窗口的槽函数''' dialog.Signal_OneParameter.connect(self.deal_emit_slot) dialog.show()
def openDialog(self): dialog = DateDialog(self) dialog.datetime_inner.dateTimeChanged.connect(self.deal_inner_slot) dialog.Signal_OneParameter.connect(self.deal_emit_slot) dialog.show()
def openDialog(self): dialog = DateDialog(self) dialog.datetime.dateTimeChanged.connect(self.getDate) dialog.Signal_OneParameter.connect(self.getStrDate) dialog.show()