|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | + |
| 3 | +########################################################################### |
| 4 | +## Python code generated with wxFormBuilder (version Jun 17 2015) |
| 5 | +## http://www.wxformbuilder.org/ |
| 6 | +## |
| 7 | +## PLEASE DO "NOT" EDIT THIS FILE! |
| 8 | +########################################################################### |
| 9 | + |
| 10 | +import wx |
| 11 | +import wx.xrc |
| 12 | + |
| 13 | + |
| 14 | +########################################################################### |
| 15 | +## Class dlgFill |
| 16 | +########################################################################### |
| 17 | + |
| 18 | +class dlgFill(wx.Dialog): |
| 19 | + def __init__(self, parent): |
| 20 | + wx.Dialog.__init__(self, parent, id=wx.ID_ANY, title=wx.EmptyString, pos=wx.DefaultPosition, |
| 21 | + size=wx.Size(315, 217), style=wx.DEFAULT_DIALOG_STYLE) |
| 22 | + |
| 23 | + self.SetSizeHintsSz(wx.Size(315, 217), wx.Size(315, 217)) |
| 24 | + |
| 25 | + bsForm = wx.BoxSizer(wx.VERTICAL) |
| 26 | + |
| 27 | + self.lblInstructions = wx.StaticText(self, wx.ID_ANY, |
| 28 | + u"This function fills any gaps greater than the gap duration with a no-data value at the fill frequency.", |
| 29 | + wx.DefaultPosition, wx.DefaultSize, 0) |
| 30 | + self.lblInstructions.Wrap(300) |
| 31 | + bsForm.Add(self.lblInstructions, 0, wx.ALL, 5) |
| 32 | + |
| 33 | + fgSizer1 = wx.FlexGridSizer(0, 3, 0, 0) |
| 34 | + fgSizer1.SetFlexibleDirection(wx.BOTH) |
| 35 | + fgSizer1.SetNonFlexibleGrowMode(wx.FLEX_GROWMODE_SPECIFIED) |
| 36 | + |
| 37 | + self.lblGap = wx.StaticText(self, wx.ID_ANY, u"Gap Duration:", wx.DefaultPosition, wx.DefaultSize, 0) |
| 38 | + self.lblGap.Wrap(-1) |
| 39 | + fgSizer1.Add(self.lblGap, 0, wx.ALL, 5) |
| 40 | + |
| 41 | + self.txtGap = wx.TextCtrl(self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0) |
| 42 | + fgSizer1.Add(self.txtGap, 0, wx.ALL, 5) |
| 43 | + |
| 44 | + cbGapChoices = [u"second", u"minute", u"hour", u"days", u"week", u"month", u"day", u"year"] |
| 45 | + self.cbGap = wx.ComboBox(self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, cbGapChoices, 0) |
| 46 | + self.cbGap.SetSelection(1) |
| 47 | + fgSizer1.Add(self.cbGap, 1, wx.ALL, 5) |
| 48 | + |
| 49 | + self.lblFill = wx.StaticText(self, wx.ID_ANY, u"Fill Frequency:", wx.DefaultPosition, wx.DefaultSize, 0) |
| 50 | + self.lblFill.Wrap(-1) |
| 51 | + fgSizer1.Add(self.lblFill, 0, wx.ALL, 5) |
| 52 | + |
| 53 | + self.txtFill = wx.TextCtrl(self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, 0) |
| 54 | + fgSizer1.Add(self.txtFill, 0, wx.ALL, 5) |
| 55 | + |
| 56 | + cbFillChoices = [u"second", u"minute", u"hour", u"day", u"week", u"month", u"year"] |
| 57 | + self.cbFill = wx.ComboBox(self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, wx.DefaultSize, cbFillChoices, 0) |
| 58 | + self.cbFill.SetSelection(1) |
| 59 | + fgSizer1.Add(self.cbFill, 1, wx.ALL, 5) |
| 60 | + |
| 61 | + bsForm.Add(fgSizer1, 1, wx.EXPAND, 5) |
| 62 | + |
| 63 | + m_sdbSizer1 = wx.StdDialogButtonSizer() |
| 64 | + self.m_sdbSizer1OK = wx.Button(self, wx.ID_OK) |
| 65 | + m_sdbSizer1.AddButton(self.m_sdbSizer1OK) |
| 66 | + self.m_sdbSizer1Cancel = wx.Button(self, wx.ID_CANCEL) |
| 67 | + m_sdbSizer1.AddButton(self.m_sdbSizer1Cancel) |
| 68 | + m_sdbSizer1.Realize(); |
| 69 | + |
| 70 | + bsForm.Add(m_sdbSizer1, 1, wx.EXPAND, 5) |
| 71 | + |
| 72 | + self.SetSizer(bsForm) |
| 73 | + self.Layout() |
| 74 | + |
| 75 | + self.Centre(wx.BOTH) |
| 76 | + |
| 77 | + # Connect Events |
| 78 | + self.m_sdbSizer1Cancel.Bind(wx.EVT_BUTTON, self.OnCancelBtn) |
| 79 | + self.m_sdbSizer1OK.Bind(wx.EVT_BUTTON, self.onOKBtn) |
| 80 | + |
| 81 | + def __del__(self): |
| 82 | + pass |
| 83 | + |
| 84 | + # Virtual event handlers, overide them in your derived class |
| 85 | + def OnCancelBtn(self, event): |
| 86 | + event.Skip() |
| 87 | + |
| 88 | + def onOKBtn(self, event): |
| 89 | + event.Skip() |
| 90 | + |
| 91 | + |
0 commit comments