Beispiel #1
0
def BilContrPatrPasFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

    item1 = wx.StaticText(parent, ID_LABPATPAS, "Passività",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item1.SetForegroundColour(wx.BLUE)
    item1.SetBackgroundColour(wx.LIGHT_GREY)
    item1.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD))
    item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item2 = wx.Panel(parent, ID_PANPATPAS, wx.DefaultPosition, wx.DefaultSize,
                     wx.SUNKEN_BORDER)
    item0.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item3 = wx.FlexGridSizer(1, 0, 0, 0)

    item3.Add([2, 60], 0, wx.ALIGN_CENTER, 5)

    item4 = wx.FlexGridSizer(0, 4, 0, 0)

    item5 = NumCtrl(parent,
                    ID_PERESP,
                    integerWidth=12,
                    fractionWidth=bt.VALINT_DECIMALS,
                    groupDigits=True)
    item5.SetName("peresp")
    item5.SetReadOnly()
    item4.Add(item5, 0, wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item6 = wx.StaticText(parent, ID_LABPERESP, "Perdita da es.preced.",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item6.SetName("labperesp")
    item4.Add(
        item6, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP
        | wx.BOTTOM, 5)

    item7 = wx.StaticText(parent, ID_LABPATTOTPAS, "Tot. Passività:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item4.Add(item7, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item8 = NumCtrl(parent,
                    ID_TOTPPAS,
                    integerWidth=12,
                    fractionWidth=bt.VALINT_DECIMALS,
                    groupDigits=True)
    item8.SetName("totppas")
    item8.SetReadOnly()
    item4.Add(
        item8, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP
        | wx.BOTTOM, 5)

    item4.Add([20, 20], 0, wx.ALIGN_CENTER, 5)

    item4.Add([20, 20], 0, wx.ALIGN_CENTER, 5)

    item9 = wx.StaticText(parent, ID_LABPUPP, "Perdita di esercizio:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item9.SetName("labpupp")
    item4.Add(
        item9, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

    item10 = NumCtrl(parent,
                     ID_TOTPUPP,
                     integerWidth=12,
                     fractionWidth=bt.VALINT_DECIMALS,
                     groupDigits=True)
    item10.SetName("totpupp")
    item10.SetReadOnly()
    item4.Add(item10, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM,
              5)

    item4.AddGrowableCol(2)

    item3.Add(item4, 0, wx.GROW, 5)

    item3.AddGrowableCol(1)

    item0.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item0.AddGrowableCol(0)

    item0.AddGrowableRow(1)

    if set_sizer == True:
        parent.SetSizer(item0)
        if call_fit == True:
            item0.SetSizeHints(parent)

    return item0
Beispiel #2
0
def BilContrEconRicFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

    item1 = wx.StaticText(parent, ID_LABPATPAS, "Ricavi", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item1.SetForegroundColour(wx.BLUE)
    item1.SetBackgroundColour(wx.LIGHT_GREY)
    item1.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD))
    item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item2 = wx.Panel(parent, ID_PANECORIC, wx.DefaultPosition, [200, 100],
                     wx.SUNKEN_BORDER)
    item0.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item3 = wx.FlexGridSizer(0, 2, 0, 0)

    item3.Add([2, 60], 0, wx.ALIGN_CENTER, 5)

    item4 = wx.FlexGridSizer(0, 2, 0, 0)

    item5 = wx.StaticText(parent, ID_LABECOTOTRIC, "Tot. Ricavi:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item4.Add(item5, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item6 = NumCtrl(parent,
                    ID_TOTERIC,
                    integerWidth=12,
                    fractionWidth=bt.VALINT_DECIMALS,
                    groupDigits=True)
    item6.SetName("toteric")
    item6.SetReadOnly()
    item4.Add(
        item6, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP
        | wx.BOTTOM, 5)

    item7 = wx.StaticText(parent, ID_LABEUPR, "Utile di esercizio:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item7.SetName("labeupr")
    item4.Add(
        item7, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

    item8 = NumCtrl(parent,
                    ID_TOTEUPR,
                    integerWidth=12,
                    fractionWidth=bt.VALINT_DECIMALS,
                    groupDigits=True)
    item8.SetName("toteupr")
    item8.SetReadOnly()
    item4.Add(item8, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM,
              5)

    item3.Add(item4, 0, wx.ALIGN_RIGHT, 5)

    item3.AddGrowableCol(1)

    item0.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item0.AddGrowableCol(0)

    item0.AddGrowableRow(1)

    if set_sizer == True:
        parent.SetSizer(item0)
        if call_fit == True:
            item0.SetSizeHints(parent)

    return item0
Beispiel #3
0
def BilContrOrdAvereFunc(parent, call_fit=True, set_sizer=True):
    item0 = wx.FlexGridSizer(0, 1, 0, 0)

    item1 = wx.StaticText(parent, ID_LABORDAVE, "Avere", wx.DefaultPosition,
                          wx.DefaultSize, 0)
    item1.SetForegroundColour(wx.BLUE)
    item1.SetBackgroundColour(wx.LIGHT_GREY)
    item1.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD))
    item0.Add(item1, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item2 = wx.Panel(parent, ID_PANORDAVE, wx.DefaultPosition, [200, 100],
                     wx.SUNKEN_BORDER)
    item0.Add(item2, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item3 = wx.FlexGridSizer(0, 2, 0, 0)

    item3.Add([2, 60], 0, wx.ALIGN_CENTER, 5)

    item4 = wx.FlexGridSizer(0, 2, 0, 0)

    item5 = wx.StaticText(parent, ID_LABORDTOTAVE, "Tot. Avere:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item4.Add(item5, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.ALL, 5)

    item6 = NumCtrl(parent,
                    ID_TOTOAVE,
                    integerWidth=12,
                    fractionWidth=bt.VALINT_DECIMALS,
                    groupDigits=True)
    item6.SetName("totoave")
    item6.SetReadOnly()
    item4.Add(
        item6, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.TOP
        | wx.BOTTOM, 5)

    item7 = wx.StaticText(parent, ID_LABOUPA, "Differenza:",
                          wx.DefaultPosition, wx.DefaultSize, 0)
    item7.SetName("laboupa")
    item4.Add(
        item7, 0, wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.LEFT
        | wx.RIGHT | wx.BOTTOM, 5)

    item8 = NumCtrl(parent,
                    ID_TOTOUPA,
                    integerWidth=12,
                    fractionWidth=bt.VALINT_DECIMALS,
                    groupDigits=True)
    item8.SetName("totoupa")
    item8.SetReadOnly()
    item4.Add(item8, 0,
              wx.ALIGN_RIGHT | wx.ALIGN_CENTER_VERTICAL | wx.RIGHT | wx.BOTTOM,
              5)

    item3.Add(item4, 0, wx.ALIGN_RIGHT, 5)

    item3.AddGrowableCol(1)

    item0.Add(item3, 0, wx.GROW | wx.ALIGN_CENTER_VERTICAL, 5)

    item0.AddGrowableCol(0)

    item0.AddGrowableRow(1)

    if set_sizer == True:
        parent.SetSizer(item0)
        if call_fit == True:
            item0.SetSizeHints(parent)

    return item0