def BilGestFunc(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item2 = Notebook(parent, ID_BILGESTZONE, wx.DefaultPosition, [-1, 360], 0) item1 = item2 item3 = wx.Panel(item2, -1) BilGestPatrFunc(item3, False) item2.AddPage(item3, "Stato &Patrimoniale") item4 = wx.Panel(item2, -1) BilGestEconFunc(item4, False) item2.AddPage(item4, "Conto &Economico") item5 = wx.Panel(item2, -1) BilGestOrdFunc(item5, False) item2.AddPage(item5, "Conti d'&Ordine") item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.AddGrowableCol(0) item0.AddGrowableRow(0) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def AttachButtonDetailsFunc(parent, call_fit=True, set_sizer=True): item0 = wx.BoxSizer(wx.VERTICAL) item1 = wx.StaticText(parent, ID_TEXT, "Dettagli allegato", wx.DefaultPosition, wx.DefaultSize, 0) item1.SetBackgroundColour(wx.LIGHT_GREY) item1.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD)) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item2 = wx.FlexGridSizer(1, 0, 0, 0) item4 = wx.StaticBox(parent, -1, "Descrizione") item3 = wx.StaticBoxSizer(item4, wx.HORIZONTAL) item5 = TextCtrl_LC(parent, ID_TEXTCTRL, "", wx.DefaultPosition, [500, -1], 0) item5.SetName("description") item3.Add(item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.TOP | wx.BOTTOM, 5) item2.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item2.AddGrowableCol(0) item0.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item7 = Notebook(parent, ID_ATTACH_SPECS, wx.DefaultPosition, wx.DefaultSize, 0) item6 = item7 item8 = wx.Panel(item7, -1) AttachNoteFunc(item8, False) item7.AddPage(item8, "Annotazione") item9 = wx.Panel(item7, -1) AttachFileFunc(item9, False) item7.AddPage(item9, "Documento") item10 = wx.Panel(item7, -1) AttachUrlFunc(item10, False) item7.AddPage(item10, "Pagina WEB") item0.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def SetupDatabaseFunc(parent, call_fit=True, set_sizer=True): item0 = wx.BoxSizer(wx.VERTICAL) item2 = wx.StaticBox(parent, -1, "Database") item1 = wx.StaticBoxSizer(item2, wx.VERTICAL) item4 = Notebook(parent, ID_NOTEBOOK_MYSQL, wx.DefaultPosition, [200, 160], 0) item3 = item4 item5 = wx.Panel(item4, -1) DbMySql(item5, False) item4.AddPage(item5, "Server") item1.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item6 = wx.FlexGridSizer(1, 0, 0, 0) item7 = CheckBox(parent, ID_SQLSPY, "SQL spy", wx.DefaultPosition, wx.DefaultSize, 0) item7.SetName("Database_sqlspy") item6.Add(item7, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item8 = wx.Button(parent, ID_ADDSERVER, "Aggiungi Server", wx.DefaultPosition, wx.DefaultSize, 0) item6.Add( item8, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item6.AddGrowableCol(1) item1.Add(item6, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def ErrorPanelFunc(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item2 = Notebook(parent, ID_NOTEBOOK, wx.DefaultPosition, [200, 160], 0) item1 = item2 item3 = wx.Panel(item2, -1) ErrorPanelWarningFunc(item3, False) item2.AddPage(item3, "Attenzione!") item4 = wx.Panel(item2, -1) ErrorPanelDetailsFunc(item4, False) item2.AddPage(item4, "Dettagli tecnici") item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item5 = wx.BoxSizer(wx.HORIZONTAL) item6 = wx.Button(parent, ID_NOSEND, "Non inviare", wx.DefaultPosition, wx.DefaultSize, 0) item5.Add(item6, 0, wx.ALIGN_CENTER | wx.RIGHT | wx.BOTTOM, 5) item7 = wx.Button(parent, ID_SEND, "Invia rapporto problema", wx.DefaultPosition, wx.DefaultSize, 0) item5.Add(item7, 0, wx.ALIGN_CENTER | wx.RIGHT | wx.BOTTOM, 5) item0.Add(item5, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 5) item0.AddGrowableCol(0) item0.AddGrowableRow(0) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0
def __init__(self, parent, *args, **kwargs): Notebook.__init__(self, parent, *args, **kwargs) parent.workzone = self self.Bind(wx.EVT_NOTEBOOK_PAGE_CHANGED, self.OnPageChanged)
def __init__(self, *args, **kwargs): Notebook.__init__(self, *args, **kwargs) self.SetName('workzone')
def _OLD_WorkstationSetup(parent, call_fit=True, set_sizer=True): item0 = wx.FlexGridSizer(0, 1, 0, 0) item1 = wx.FlexGridSizer(0, 2, 0, 0) item2 = wx.BoxSizer(wx.VERTICAL) item4 = wx.StaticBox(parent, -1, "Sito installazione") item3 = wx.StaticBoxSizer(item4, wx.VERTICAL) item6 = Notebook(parent, ID_NOTEBOOK, wx.DefaultPosition, [200, 160], 0) item5 = item6 item7 = wx.Panel(item6, -1) SiteConfig(item7, False) item6.AddPage(item7, "Identificativo") item3.Add(item5, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item2.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item9 = wx.StaticBox(parent, -1, "Database") item8 = wx.StaticBoxSizer(item9, wx.VERTICAL) item11 = Notebook(parent, ID_NOTEBOOK_MYSQL, wx.DefaultPosition, [200, 160], 0) item10 = item11 item12 = wx.Panel(item11, -1) DbMySql(item12, False) item11.AddPage(item12, "Server") item8.Add(item10, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item13 = wx.FlexGridSizer(1, 0, 0, 0) item14 = CheckBox(parent, ID_SQLSPY, "SQL spy", wx.DefaultPosition, wx.DefaultSize, 0) item14.SetName("Database_sqlspy") item13.Add(item14, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item15 = wx.Button(parent, ID_ADDSERVER, "Aggiungi Server", wx.DefaultPosition, wx.DefaultSize, 0) item13.Add( item15, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.TOP | wx.BOTTOM, 5) item13.AddGrowableCol(1) item8.Add(item13, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item2.Add(item8, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT, 5) item17 = wx.StaticBox(parent, -1, "Collegamento ad Internet") item16 = wx.StaticBoxSizer(item17, wx.VERTICAL) item18 = CheckBox(parent, ID_SITEINETAO, "Questa workstation dispone di un accesso permanente", wx.DefaultPosition, [360, -1], 0) item18.SetName("Site_inetao") item16.Add(item18, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item2.Add(item16, 0, wx.GROW | wx.RIGHT | wx.TOP | wx.BOTTOM, 5) item1.Add(item2, 0, wx.GROW, 5) item19 = wx.FlexGridSizer(0, 1, 0, 0) item21 = wx.StaticBox(parent, -1, "Cartelle") item20 = wx.StaticBoxSizer(item21, wx.VERTICAL) item23 = Notebook(parent, ID_NOTEBOOK, wx.DefaultPosition, [200, 160], 0) item22 = item23 item24 = wx.Panel(item23, -1) Report(item24, False) item23.AddPage(item24, "Report") item20.Add(item22, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item19.Add(item20, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.BOTTOM, 5) item26 = wx.StaticBox(parent, -1, "Esportazione dati: Formato file .CSV") item25 = wx.StaticBoxSizer(item26, wx.VERTICAL) item27 = CheckBox(parent, ID_CSVASGRID, "Esporta i valori come presentati nelle griglie", wx.DefaultPosition, [360, -1], 0) item27.SetName("DataExport_csvasgrid") item25.Add(item27, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item28 = CSVFormatPanel(parent, ID_CSVSPEC) item25.Add(item28, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item19.Add(item25, 0, wx.GROW | wx.LEFT | wx.BOTTOM, 5) item19.AddGrowableRow(1) item1.Add(item19, 0, wx.GROW, 5) item1.AddGrowableCol(0) item1.AddGrowableCol(1) item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.LEFT | wx.RIGHT | wx.TOP, 5) item29 = wx.FlexGridSizer(1, 0, 0, 0) item30 = wx.FlexGridSizer(1, 0, 0, 0) item31 = IconTypeRadioBox(parent, ID_THEME, "Tema", wx.DefaultPosition, wx.DefaultSize, ["Vista", "Pastel", "Spheric"], 1, wx.RA_SPECIFY_COLS) item31.SetName("Controls_iconstype") item30.Add(item31, 0, wx.ALIGN_CENTER | wx.ALL, 5) item32 = RadioBox( parent, ID_TABGRID, "Sulle griglie, il tasto TAB naviga su:", wx.DefaultPosition, wx.DefaultSize, ["le celle della griglia", "i controlli adiacenti alla griglia"], 1, wx.RA_SPECIFY_COLS) item32.SetName("Controls_tabgrid") item30.Add(item32, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item29.Add(item30, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5) item0.Add(item29, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM, 5) item33 = wx.FlexGridSizer(1, 0, 0, 0) item34 = wx.Button(parent, ID_BTNQUIT, "Abbandona", wx.DefaultPosition, wx.DefaultSize, 0) item33.Add(item34, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item35 = wx.Button(parent, ID_BTNOK, "OK", wx.DefaultPosition, wx.DefaultSize, 0) item35.SetDefault() item33.Add(item35, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5) item0.Add(item33, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL, 5) item0.AddGrowableCol(0) if set_sizer == True: parent.SetSizer(item0) if call_fit == True: item0.SetSizeHints(parent) return item0