Lines Matching defs:wx
25 import wx
29 import wx.html
32 from wx.lib.mixins.listctrl import CheckListCtrlMixin, ListCtrlAutoWidthMixin
45 provider = wx.SimpleHelpProvider()
46 wx.HelpProvider_Set(provider)
49 class JetCreator(wx.Frame):
52 wx.Frame.__init__(self, parent, id, size=(1050, 720), style=wx.DEFAULT_FRAME_STYLE | wx.MINIMIZE_BOX | wx.MAXIMIZE_BOX)
97 wx.EVT_CLOSE(self, self.OnClose)
110 panel = wx.Panel(self, -1)
112 hboxMain = wx.BoxSizer(wx.HORIZONTAL)
114 leftPanel = wx.Panel(panel, -1)
115 leftTopPanel = wx.Panel(leftPanel, -1)
116 leftBotPanel = wx.Panel(leftPanel, -1)
117 rightPanel = wx.Panel(panel, -1)
127 self.eventList.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnEventListClick)
128 self.segList.Bind(wx.EVT_LIST_ITEM_SELECTED, self.OnSegListClick)
129 self.segList.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnSegmentUpdate)
130 self.eventList.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnEventUpdate)
135 self.btnAddSeg = wx.Button(leftTopPanel, -1, JetDefs.BUT_ADD, size=BUT_SIZE)
136 self.btnRevSeg = wx.Button(leftTopPanel, -1, JetDefs.BUT_REVISE, size=BUT_SIZE)
137 self.btnDelSeg = wx.Button(leftTopPanel, -1, JetDefs.BUT_DELETE, size=BUT_SIZE)
138 self.btnMoveSeg = wx.Button(leftTopPanel, -1, JetDefs.BUT_MOVE, size=BUT_SIZE)
140 self.btnQueueAll = wx.Button(leftTopPanel, -1, JetDefs.BUT_QUEUEALL, size=BUT_SIZE)
141 self.btnDequeueAll = wx.Button(leftTopPanel, -1, JetDefs.BUT_DEQUEUEALL, size=BUT_SIZE)
142 self.btnPlay = wx.Button(leftTopPanel, -1, JetDefs.BUT_PLAY, size=BUT_SIZE)
143 self.btnPause = wx.Button(leftTopPanel, -1, JetDefs.BUT_PAUSE, size=BUT_SIZE)
144 self.btnAudition = wx.Button(leftTopPanel, -1, JetDefs.BUT_AUDITION, size=BUT_SIZE)
146 self.btnAddEvt = wx.Button(leftBotPanel, -1, JetDefs.BUT_ADD, size=BUT_SIZE)
147 self.btnRevEvt = wx.Button(leftBotPanel, -1, JetDefs.BUT_REVISE, size=BUT_SIZE)
148 self.btnDelEvt = wx.Button(leftBotPanel, -1, JetDefs.BUT_DELETE, size=BUT_SIZE)
149 self.btnMoveEvents = wx.Button(leftBotPanel, -1, JetDefs.BUT_MOVE, size=BUT_SIZE)
151 self.Bind(wx.EVT_BUTTON, self.OnSegmentAdd, id=self.btnAddSeg.GetId())
152 self.Bind(wx.EVT_BUTTON, self.OnSegmentUpdate, id=self.btnRevSeg.GetId())
153 self.Bind(wx.EVT_BUTTON, self.OnSegmentDelete, id=self.btnDelSeg.GetId())
154 self.Bind(wx.EVT_BUTTON, self.OnSegmentsMove, id=self.btnMoveSeg.GetId())
156 self.Bind(wx.EVT_BUTTON, self.OnSelectAll, id=self.btnQueueAll.GetId())
157 self.Bind(wx.EVT_BUTTON, self.OnDeselectAll, id=self.btnDequeueAll.GetId())
158 self.Bind(wx.EVT_BUTTON, self.OnPlay, id=self.btnPlay.GetId())
159 self.Bind(wx.EVT_BUTTON, self.OnPause, id=self.btnPause.GetId())
160 self.Bind(wx.EVT_BUTTON, self.OnAudition, id=self.btnAudition.GetId())
162 self.Bind(wx.EVT_BUTTON, self.OnEventAdd, id=self.btnAddEvt.GetId())
163 self.Bind(wx.EVT_BUTTON, self.OnEventUpdate, id=self.btnRevEvt.GetId())
164 self.Bind(wx.EVT_BUTTON, self.OnEventDelete, id=self.btnDelEvt.GetId())
165 self.Bind(wx.EVT_BUTTON, self.OnEventsMove, id=self.btnMoveEvents.GetId())
169 vBoxLeftTop = wx.BoxSizer(wx.VERTICAL)
170 vBoxLeftBot = wx.BoxSizer(wx.VERTICAL)
172 vBoxLeftTop.Add(self.btnAddSeg, 0, wx.TOP, BORDER)
173 vBoxLeftTop.Add(self.btnRevSeg, 0, wx.TOP, BUT_SPACE)
174 vBoxLeftTop.Add(self.btnDelSeg, 0, wx.TOP, BUT_SPACE)
175 vBoxLeftTop.Add(self.btnMoveSeg, 0, wx.TOP, BUT_SPACE)
177 vBoxLeftTop.Add(self.btnQueueAll, 0, wx.TOP, BUT_SPACE)
178 vBoxLeftTop.Add(self.btnDequeueAll, 0, wx.TOP, BUT_SPACE)
179 vBoxLeftTop.Add(self.btnPlay, 0, wx.TOP, BUT_SPACE)
180 vBoxLeftTop.Add(self.btnPause, 0, wx.TOP, BUT_SPACE)
181 vBoxLeftTop.Add(self.btnAudition, 0, wx.TOP, BUT_SPACE)
184 vBoxLeftBot.Add(self.btnRevEvt, 0, wx.TOP, BUT_SPACE)
185 vBoxLeftBot.Add(self.btnDelEvt, 0, wx.TOP, BUT_SPACE)
186 vBoxLeftBot.Add(self.btnMoveEvents, 0, wx.TOP, BUT_SPACE)
191 vboxLeft = wx.BoxSizer(wx.VERTICAL)
192 vboxLeft.Add(leftTopPanel, 1, wx.EXPAND)
193 vboxLeft.Add(leftBotPanel, 1, wx.EXPAND)
198 self.log = wx.TextCtrl(rightPanel, -1)
201 vboxRight = wx.BoxSizer(wx.VERTICAL)
202 vboxRight.Add(self.segList, 4, wx.EXPAND | wx.TOP, BORDER)
204 vboxRight.Add(self.eventList, 3, wx.EXPAND | wx.TOP, BORDER)
206 vboxRight.Add(self.log, 0, wx.EXPAND)
208 vboxRight.Add(self.graph, 1, wx.EXPAND)
213 hboxMain.Add(leftPanel, 0, wx.EXPAND | wx.RIGHT | wx.LEFT, BORDER)
214 hboxMain.Add(rightPanel, 1, wx.EXPAND)
219 pnlGraph = wx.Panel(leftBotPanel, -1)
220 graphSizer1 = wx.BoxSizer(wx.VERTICAL)
223 graphBox = wx.StaticBox(pnlGraph, wx.ID_ANY, label='Graph')
224 graphSizer2 = wx.StaticBoxSizer(graphBox, wx.VERTICAL)
226 self.chkGraphLabels = wx.CheckBox(pnlGraph, -1, JetDefs.GRAPH_LBLS)
227 self.chkGraphClips = wx.CheckBox(pnlGraph, -1, JetDefs.GRAPH_TRIGGER)
228 self.chkGraphAppEvts = wx.CheckBox(pnlGraph, -1, JetDefs.GRAPH_APP)
230 graphSizer2.Add(self.chkGraphLabels, 0, wx.TOP, BUT_SPACE)
231 graphSizer2.Add(self.chkGraphClips, 0, wx.TOP, BUT_SPACE)
232 graphSizer2.Add(self.chkGraphAppEvts, 0, wx.TOP | wx.BOTTOM, BUT_SPACE)
236 vBoxLeftBot.Add(pnlGraph, 0, wx.TOP, BUT_SPACE)
238 self.Bind(wx.EVT_CHECKBOX, self.OnSetGraphOptions, id=self.chkGraphLabels.GetId())
239 self.Bind(wx.EVT_CHECKBOX, self.OnSetGraphOptions, id=self.chkGraphClips.GetId())
240 self.Bind(wx.EVT_CHECKBOX, self.OnSetGraphOptions, id=self.chkGraphAppEvts.GetId())
420 if result == wx.ID_OK:
485 if result == wx.ID_OK:
582 if result == wx.ID_OK:
647 if result == wx.ID_OK:
720 if result == wx.ID_OK:
828 if result == wx.ID_OK:
865 dialog = wx.FileDialog(None, JetDefs.SAVE_PROMPT, defDir, "", JetDefs.JTC_FILE_SPEC, wx.SAVE | wx.OVERWRITE_PROMPT )
866 if dialog.ShowModal() == wx.ID_OK:
904 menuBar = wx.MenuBar()
913 menu = wx.Menu()
921 self.Bind(wx.EVT_MENU, getattr(self, eachHandler) , self.menuItems[eachLabel])
940 self.Bind(wx.EVT_TOOL, getattr(self, eachTool[3]) , self.toolItems[eachTool[0]])
999 dialog = wx.FileDialog(None, JetDefs.IMPORT_ARCHIVE_PROMPT, defDir, "", JetDefs.ARCHIVE_FILE_SPEC, wx.OPEN)
1000 if dialog.ShowModal() == wx.ID_OK:
1003 dlg1 = wx.DirDialog(self, JetDefs.IMPORT_ARCHIVEDIR_PROMPT, style=wx.DD_DEFAULT_STYLE, defaultPath=defDir)
1004 if dlg1.ShowModal() == wx.ID_OK:
1012 wx.MessageBox(JetDefs.IMPORT_ARCHIVE_NO_JTC)
1025 wx
1032 wx.MessageBox(JetDefs.IMPORT_ARCHIVE_NO_JTC)
1069 dialog = wx.FileDialog(None, JetDefs.EXPORT_ARCHIVE_PROMPT, defDir, "", JetDefs.ARCHIVE_FILE_SPEC, wx.SAVE | wx.OVERWRITE_PROMPT )
1070 if dialog.ShowModal() == wx.ID_OK:
1139 if result == wx.ID_OK:
1153 if result == wx.ID_OK:
1169 if ret == wx.ID_YES:
1171 if ret == wx.ID_CANCEL:
1255 wx.PostEvent(self, JetStatusEvent(JetDefs.PST_PLAY, status.currentUserID))
1269 wx.PostEvent(self, JetStatusEvent(JetDefs.PST_UPD_LOCATION, status.location))
1278 wx.PostEvent(self, JetStatusEvent(JetDefs.PST_DONE, None))
1410 app = wx.App(None)
1418 if result == wx.ID_CANCEL: