def _create_input_controls(self): alert_panel = wx.Panel(self) time_type = self.editor.timeline.get_time_type() self.dtp_start = time_picker_for(time_type)(alert_panel, config=self.editor.config) self.text_data = wx.TextCtrl(alert_panel, size=(300,80), style=wx.TE_MULTILINE) self.data = self.dtp_start self._layout_input_controls(alert_panel) return alert_panel
def _create_time_picker(self): self.time_picker = time_picker_for(self.time_type)(self, config=self.config)
def TimePicker(parent, time_type, name="", *args, **kwargs): from timelinelib.wxgui.utils import time_picker_for return time_picker_for(time_type)(parent, *args, **kwargs)