def build_unpaid_toolbar_panel(self, parent): panel = wx.Panel( parent, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize ) panel.SetBackgroundColour(gbl.COLOR_SCHEME.tbBg) layout = wx.BoxSizer(wx.HORIZONTAL) lbl = uil.get_toolbar_label(panel, 'Outstanding Bills') lbl.SetForegroundColour(wx.Colour(gbl.COLOR_SCHEME.tbFg)) layout.Add(lbl, 0, wx.ALL, 5) total_lbl = uil.get_toolbar_label(panel, 'Total: ') lbl.SetForegroundColour(wx.Colour(gbl.COLOR_SCHEME.tbFg)) layout.Add(total_lbl, 0, wx.ALL, 5) self.total_ctrl = wx.TextCtrl(panel, wx.ID_ANY, '') layout.Add(self.total_ctrl, 0, wx.ALL, 5) flt_lbl = uil.get_toolbar_label(panel, 'By: ') layout.Add(flt_lbl, 0, wx.ALL, 5) self.filter_ctrl = wx.ComboBox(panel, wx.ID_ANY, choices=['All', 'Project', 'Grant Admin', 'Quarter']) layout.Add(self.filter_ctrl, 0, wx.ALL, 5) panel.SetSizerAndFit(layout) return panel
def build_toolbar_panel(self, parent): panel = wx.Panel(parent, wx.ID_ANY) panel.SetBackgroundColour(gbl.COLOR_SCHEME.tbBg) layout = wx.BoxSizer(wx.HORIZONTAL) self.name_lbl = uil.get_toolbar_label(panel, '') self.name_lbl.SetForegroundColour(wx.Colour(gbl.COLOR_SCHEME.tbFg)) layout.Add(self.name_lbl, 0, wx.ALL, 5) self.total_lbl = uil.get_toolbar_label(panel, '') self.total_lbl.SetForegroundColour(wx.Colour(gbl.COLOR_SCHEME.tbFg)) layout.Add(self.total_lbl, 0, wx.ALL, 5) panel.SetSizer(layout) return panel
def build_work_list_toolbar_panel(self, parent): panel = wx.Panel(parent, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize) panel.SetBackgroundColour(gbl.COLOR_SCHEME.tbBg) layout = wx.BoxSizer(wx.HORIZONTAL) lbl = uil.get_toolbar_label(panel, 'Invoice Work List') layout.Add(lbl, 0, wx.ALL, 0) # yr_lbl = uil.get_toolbar_label(panel, 'Year:') # yr_lbl.SetForegroundColour(wx.Colour(gbl.COLOR_SCHEME.tbFg)) # self.yr_ctrl = wx.TextCtrl(panel, wx.ID_ANY, '', size=(50, -1)) # layout.Add(yr_lbl, 0, wx.ALL, 5) # layout.Add(self.yr_ctrl, 0, wx.ALL, 5) # # self.qtr_ctrl = uil.RadioGroup(panel, 'Qtr:', ['1', '2', '3', '4']) # layout.Add(self.qtr_ctrl, 0, wx.ALL, 5) # # self.qry_btn = uil.toolbar_button(panel, 'Query') # layout.Add(self.qry_btn, 0, wx.ALL, 5) self.reload_btn = uil.toolbar_button(panel, 'Reload') layout.Add(self.reload_btn, 0, wx.ALL, 5) panel.SetSizerAndFit(layout) return panel
def build_form_panel(self, parent): panel = wx.Panel(parent, wx.ID_ANY) panel.SetBackgroundColour(gbl.COLOR_SCHEME.pnlBg) layout = wx.BoxSizer(wx.VERTICAL) email_lbl = uil.get_toolbar_label(panel, 'VA Email:') self.email_ctrl = wx.TextCtrl(panel, wx.ID_ANY, self.emp.va_email) layout.Add(email_lbl, 0, wx.ALL, 5) layout.Add(self.email_ctrl, 0, wx.ALL | wx.EXPAND, 5) nonva_email_lbl = uil.get_toolbar_label(panel, 'Non-VA Email:') self.nonva_email_ctrl = wx.TextCtrl(panel, wx.ID_ANY, self.emp.nonva_email) layout.Add(nonva_email_lbl, 0, wx.ALL, 5) layout.Add(self.nonva_email_ctrl, 0, wx.ALL | wx.EXPAND, 5) panel.SetSizerAndFit(layout) return panel
def build_done_toolbar_panel(self, parent): panel = wx.Panel(parent, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize) panel.SetBackgroundColour(gbl.COLOR_SCHEME.tbBg) layout = wx.BoxSizer(wx.VERTICAL) top_line = wx.BoxSizer(wx.HORIZONTAL) lbl = uil.get_toolbar_label(panel, 'Outstanding') lbl.SetForegroundColour(wx.Colour(gbl.COLOR_SCHEME.tbFg)) top_line.Add(lbl, wx.ALL, 5) total_lbl = uil.get_toolbar_label(panel, 'Total: ') lbl.SetForegroundColour(wx.Colour(gbl.COLOR_SCHEME.tbFg)) top_line.Add(total_lbl, 0, wx.ALL, 5) self.total_ctrl = wx.TextCtrl(panel, wx.ID_ANY, '') top_line.Add(self.total_ctrl, 0, wx.ALL, 5) flt_lbl = uil.get_toolbar_label(panel, 'By: ') top_line.Add(flt_lbl, 0, wx.ALL, 5) self.filter_ctrl = wx.ComboBox( panel, wx.ID_ANY, choices=['All', 'Grant Admin', 'Quarter']) top_line.Add(self.filter_ctrl, 0, wx.ALL, 5) layout.Add(top_line, 0, wx.ALL, 5) bottom_line = wx.BoxSizer(wx.HORIZONTAL) self.undo_btn = uil.toolbar_button(panel, 'Undo') bottom_line.Add(self.undo_btn, 0, wx.ALL, 5) self.import_btn = uil.toolbar_button(panel, 'Import Deposits') bottom_line.Add(self.import_btn, 0, wx.ALL, 5) layout.Add(bottom_line, 0, wx.ALL, 5) panel.SetSizerAndFit(layout) return panel
def build_toolbar_panel(self, parent, employee, month): panel = wx.Panel(parent, wx.ID_ANY) panel.SetBackgroundColour(gbl.COLOR_SCHEME.tbBg) layout = wx.BoxSizer(wx.HORIZONTAL) s = '%s @ %s' % (employee, month) self.lbl = uil.get_toolbar_label(panel, s) self.lbl.SetForegroundColour(wx.Colour(gbl.COLOR_SCHEME.tbFg)) layout.Add(self.lbl, 0, wx.ALL, 5) panel.SetSizerAndFit(layout) return panel
def build_list_toolbar_panel(self, parent): panel = wx.Panel(parent, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize) panel.SetBackgroundColour(wx.Colour(gbl.COLOR_SCHEME.tbBg)) layout = wx.BoxSizer(wx.HORIZONTAL) name_fltr_lbl = uil.get_toolbar_label(panel, 'Name:') name_fltr_lbl.SetForegroundColour(wx.Colour(gbl.COLOR_SCHEME.tbFg)) layout.Add(name_fltr_lbl, 0, wx.ALL, 5) self.name_fltr_ctrl = wx.SearchCtrl(panel, wx.ID_ANY, '', style=wx.TE_PROCESS_ENTER, name='name_fltr_ctrl') self.name_fltr_ctrl.ShowCancelButton(True) layout.Add(self.name_fltr_ctrl, 0, wx.ALL, 5) notes_fltr_lbl = uil.get_toolbar_label(panel, 'Notes') notes_fltr_lbl.SetForegroundColour(wx.Colour(gbl.COLOR_SCHEME.tbFg)) layout.Add(notes_fltr_lbl, 0, wx.ALL, 5) self.notes_fltr_ctrl = wx.SearchCtrl(panel, wx.ID_ANY, style=wx.TE_PROCESS_ENTER, name='notes_fltr_ctrl') self.notes_fltr_ctrl.ShowCancelButton(True) layout.Add(self.notes_fltr_ctrl, 0, wx.ALL, 5) self.active_btn = uil.toolbar_button(panel, 'ALL') self.active_btn.set_size(wx.Size(70, -1)) layout.Add(self.active_btn, 0, wx.ALL, 0) self.help_btn = uil.get_help_btn(panel) layout.Add(self.help_btn, 0, wx.ALL, 5) panel.SetSizerAndFit(layout) return panel
def build_pm_toolbar_panel(self, parent): panel = wx.Panel(parent, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize) panel.SetBackgroundColour(gbl.COLOR_SCHEME.tbBg) layout = wx.BoxSizer(wx.HORIZONTAL) lbl = uil.get_toolbar_label(panel, 'VA Project Managers') lbl.SetForegroundColour(wx.Colour(gbl.COLOR_SCHEME.tbFg)) layout.Add(lbl, 0, wx.ALL, 5) self.pm_drop_btn = uil.toolbar_button(panel, 'Drop') layout.Add(self.pm_drop_btn, 0, wx.ALL, 5) panel.SetSizerAndFit(layout) return panel
def build_toolbar_panel(self, parent): panel = wx.Panel(parent, wx.ID_ANY) panel.SetBackgroundColour(gbl.COLOR_SCHEME.tbBg) layout = wx.BoxSizer(wx.HORIZONTAL) self.name_lbl = uil.get_toolbar_label(panel, 'Ledger Record') self.name_lbl.SetForegroundColour(wx.Colour(gbl.COLOR_SCHEME.tbFg)) layout.Add(self.name_lbl, 0, wx.ALL, 5) btn_layout = wx.BoxSizer(wx.HORIZONTAL) self.cancel_btn = uil.toolbar_button(panel, 'Cancel') btn_layout.Add(self.cancel_btn, 0, wx.ALL, 5) self.save_btn = uil.toolbar_button(panel, 'Save') btn_layout.Add(self.save_btn, 0, wx.ALL, 5) layout.Add(btn_layout, 0, wx.ALIGN_RIGHT, 5) panel.SetSizer(layout) return panel
def build_toolbar_panel(self, parent): panel = wx.Panel(parent, wx.ID_ANY) panel.SetBackgroundColour(gbl.COLOR_SCHEME.tbBg) layout = wx.BoxSizer(wx.HORIZONTAL) title_lbl = uil.get_toolbar_label(panel, self.emp.name) title_lbl.SetForegroundColour(wx.Colour(gbl.COLOR_SCHEME.tbFg)) layout.Add(title_lbl, 0, wx.ALL, 5) self.ok_btn = uil.toolbar_button(panel, 'OK') layout.Add(self.ok_btn, 0, wx.ALL, 5) self.ok_btn.Bind(wx.EVT_BUTTON, self.on_ok_click) self.cancel_btn = uil.toolbar_button(panel, 'Cancel') layout.Add(self.cancel_btn, 0, wx.ALL, 5) self.cancel_btn.Bind(wx.EVT_BUTTON, self.on_cancel_click) panel.SetSizer(layout) return panel
def build_deposits_toolbar_panel(self, parent): panel = wx.Panel( parent, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize ) panel.SetBackgroundColour(gbl.COLOR_SCHEME.tbBg) layout = wx.BoxSizer(wx.HORIZONTAL) lbl = uil.get_toolbar_label(panel, 'Deposits') lbl.SetForegroundColour(wx.Colour(gbl.COLOR_SCHEME.tbFg)) layout.Add(lbl, 0, wx.ALL, 5) self.import_btn = uil.toolbar_button(panel, 'Import') layout.Add(self.import_btn, 0, wx.ALL, 5) self.update_btn = uil.toolbar_button(panel, 'Update') layout.Add(self.update_btn, 0, wx.ALL, 5) panel.SetSizerAndFit(layout) return panel
def build_work_form_toolbar_panel(self, parent): panel = wx.Panel(parent, wx.ID_ANY) panel.SetBackgroundColour(gbl.COLOR_SCHEME.tbBg) layout = wx.BoxSizer(wx.HORIZONTAL) name_lbl = uil.get_toolbar_label(panel, 'Details') name_lbl.SetForegroundColour(wx.Colour(gbl.COLOR_SCHEME.tbFg)) layout.Add(name_lbl, 0, wx.ALL, 5) btn_layout = wx.BoxSizer(wx.HORIZONTAL) self.save_form_btn = uil.toolbar_button(panel, 'Save') btn_layout.Add(self.save_form_btn, 0, wx.ALL, 5) layout.Add(btn_layout, 0, wx.ALIGN_RIGHT, 5) self.done_btn = uil.toolbar_button(panel, 'Mark Done') btn_layout.Add(self.done_btn, 0, wx.ALL, 5) layout.Add(btn_layout, 0, wx.ALIGN_RIGHT, 5) panel.SetSizer(layout) return panel