Пример #1
0
 def ClearLc(self, evt):
     self.lc.ClearAll()
     self.lc.InsertColumn(0, _("Anno"),width=cfg._COLSZ0_)
     self.lc.InsertColumn(1, _("Num. Mov."),width=cfg._COLSZ0_)
     self.lc.InsertColumn(2, _("Data Mov."),width=cfg._COLSZ0_)
     self.lc.InsertColumn(3, _("Num. Riga"),width=cfg._COLSZ0_)
     self.lc.InsertColumn(4, _("Anno IVA"),width=cfg._COLSZ0_)
     self.lc.InsertColumn(5, _("Div"),width=cfg._COLSZ0_)
     self.lc.InsertColumn(6, _("PDC"),width=cfg._COLSZ0_)
     self.lc.InsertColumn(7, _("Descrizione Operazione"),width=wx.DLG_SZE(self.pnl, 150,-1).width) #
     self.lc.InsertColumn(8, _("Importo"),width=wx.DLG_SZE(self.pnl, 60,-1).width)      #
     self.lc.InsertColumn(9, _("Imponibile"),width=cfg._COLSZ0_)     
     self.lc.InsertColumn(10, _("Anno Doc."),width=cfg._COLSZ0_)
     self.lc.InsertColumn(11, _("Tipo Doc."),width=cfg._COLSZ0_)
     self.lc.InsertColumn(12, _("Data Doc."),width=wx.DLG_SZE(self.pnl, 50,-1).width)#
     self.lc.InsertColumn(13, _("Num Doc."),width=wx.DLG_SZE(self.pnl, 50,-1).width)#
     self.lc.InsertColumn(14, _("Num Doc1."),width=cfg._COLSZ0_)
     self.lc.InsertColumn(15, _("Conto"),width=cfg._COLSZ0_)
     self.lc.InsertColumn(16, _("Totale Doc."),width=wx.DLG_SZE(self.pnl, 60,-1).width)#
     self.lc.InsertColumn(17, _("segno"),width=cfg._COLSZ0_)
     self.lc.InsertColumn(18, _("Tipo CPart"),width=cfg._COLSZ0_)
     self.lc.InsertColumn(19, _("Cod CF"),width=cfg._COLSZ0_)        
     self.lc.InsertColumn(20, _("Cambio"),width=cfg._COLSZ0_)
     self.lc.InsertColumn(21, _("Tipo IVA"),width=cfg._COLSZ0_)
     self.lc.InsertColumn(22, _("Tipo IVA1"),width=cfg._COLSZ0_)
     self.lc.InsertColumn(23, _("Aliq. IVA"),width=cfg._COLSZ0_)
     self.lc.InsertColumn(24, _("Registro"),width=cfg._COLSZ0_)
     self.lc.InsertColumn(25, _("Imponib"),width=cfg._COLSZ0_)
     self.lc.InsertColumn(26, _("Rigagior"),width=cfg._COLSZ0_)
     self.lc.InsertColumn(27, _("Paggior"),width=cfg._COLSZ0_)
     self.lc.InsertColumn(28, _("Note"),width=cfg._COLSZ0_)
Пример #2
0
  def __init__(self, parent, id, title, orig, lastPath):
    super().__init__(parent, id, title, orig, wx.DLG_SZE(parent,wx.Size(160,184)), wx.CAPTION|wx.DIALOG_MODAL)

    wx.StaticText(self, -1, "Port Pin", wx.DLG_PNT(self,wx.Point(10,10)), wx.DLG_SZE(self,wx.Size(21,9)), wx.ALIGN_LEFT)

    self.lastPath = lastPath

    names = PortInfo.keys()
    names.sort()

    self.listbox = wx.ListBox(self, 100, wx.DLG_PNT(self,wx.Point(10,20)), wx.DLG_SZE(self,wx.Size(46,90)), names, wx.LB_SINGLE)
    self.stimulusfile = wx.StaticText(self, -1, "Stimulus File", wx.DLG_PNT(self,wx.Point(10,114)), wx.DLG_SZE(self,wx.Size(36,9)), wx.ALIGN_LEFT)
    self.stimulusfile.Enable(0)

    self.filename = wx.TextCtrl(self, 101, "", wx.DLG_PNT(self,wx.Point(10,123)), wx.DLG_SZE(self,wx.Size(100,13)), wx.TE_PROCESS_ENTER)
    self.filename.Enable(0)
    self.browse = wx.Button(self, 102, "Browse", wx.DLG_PNT(self,wx.Point(116,123)), wx.DLG_SZE(self,wx.Size(32,12)))
    self.browse.Enable(0)
    wx.StaticBox(self, -1, "Port Pin Info", wx.DLG_PNT(self,wx.Point(60,10)), wx.DLG_SZE(self,wx.Size(90,100)))

    self.pininfo = wx.StaticText(self, 103, "", wx.DLG_PNT(self,wx.Point(62,21)), wx.DLG_SZE(self,wx.Size(86,85)), wx.ALIGN_LEFT|wx.ST_NO_AUTORESIZE)

    wx.StaticLine(self, -1, wx.DLG_PNT(self,wx.Point(5,145)), wx.DLG_SZE(self,wx.Size(148,2)), wx.LI_HORIZONTAL)
    self.okbutton = wx.Button(self, wx.ID_OK, "OK", wx.DLG_PNT(self,wx.Point(34, 152)), wx.DLG_SZE(self,wx.Size(32,12)))
    self.okbutton.Enable(0)
    wx.Button(self, wx.ID_CANCEL, "Cancel", wx.DLG_PNT(self,wx.Point(86, 152)), wx.DLG_SZE(self,wx.Size(32,12)))

    self.Bind(wx.EVT_LISTBOX,self.OnListBox,id=100) #EVT_LISTBOX(self, 100, self.OnListBox)
    self.Bind(wx.EVT_LISTBOX_DCLICK,self.OnListBoxDoubleClick,id=100) #EVT_LISTBOX_DCLICK(self, 100, self.OnListBoxDoubleClick)
    self.Bind(wx.EVT_BUTTON,self.OnBrowse,id=102) #EVT_BUTTON(self, 102, self.OnBrowse)
    self.Bind(wx.EVT_TEXT_ENTER,self.OnTextEnter,id=101) #EVT_TEXT_ENTER(self, 101, self.OnTextEnter)
    self.Bind(wx.EVT_BUTTON,self.OnOk,id=wx.ID_OK) #EVT_BUTTON(self, wx.ID_OK, self.OnOk)
Пример #3
0
 def __set_properties(self):
     # begin wxGlade: Home.__set_properties
     self.SetTitle("ICESym-GUI User Help")
     self.SetSize(wx.DLG_SZE(self, (314, 314)))
     self.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.html.SetFont(
         wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.toolbar.Realize()
     self.window_1_pane_1.SetScrollRate(10, 10)
     self.window_1_pane_2.SetScrollRate(10, 10)
     self.window_1.SetMinSize(wx.DLG_SZE(self.window_1, (408, 200)))
Пример #4
0
    def __set_properties(self):
        self.profileName = skeinforge_profile.getProfileName(skeinforge_profile.getCraftTypeName())
        self.SetTitle("Skeinforge Quick Edit Profile: " + self.profileName)

        # For some reason the dialog size is not consistent between Windows and Linux - this is a hack to get it working
        if (os.name == 'nt'):
            self.SetMinSize(wx.DLG_SZE(self, (465, 370)))
        else:
            self.SetSize(wx.DLG_SZE(self, (465, 325)))

        self.SetPosition((0, 0))
        self.scrollbarPanel.SetScrollRate(10, 10)
Пример #5
0
    def __init__(self, prnt, cnt):
        wx.Dialog.__init__(self, id=wx.NewId(), name='',
              parent=prnt, pos=wx.Point(10, 50), size=wx.DefaultSize,
              style=wx.DEFAULT_FRAME_STYLE, title=ttl)
        self.SetIcon(wx.Icon(cfg.path_img+"/null.ico", wx.BITMAP_TYPE_ICO))
        #self.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.NORMAL, False))
        self.cnt = cnt
        self.SetTitle(cnt[0])
        Nid = wx.NewId()
        self.CnAz=prnt.CnAz
        #self.font=self.GetFont()
        self.__FRM__ = prnt.__MDI__        
        
        self.__MDI__ = wx.GetApp().GetPhasisMdi()
        
        self.font=self.__MDI__.font
        self.SetFont(self.font)

        self.pnl = wx.Panel(id=wx.NewId(), name='panel',
              parent=self, pos=wx.Point(0, 0))
        self.pnl.SetFont(self.font)  
        
        self.lc = wx.ListCtrl(self.pnl , Nid,
              wx.DLG_PNT(self, 5,5), wx.DLG_SZE(self.pnl , 335,110),
              wx.LC_REPORT|wx.LC_HRULES|wx.LC_VRULES)
        self.lc.InsertColumn(0, _("Codide"))
        self.lc.InsertColumn(1, _("Descrizione"))          
        self.lc.SetColumnWidth(0, wx.DLG_SZE(self,  70,-1).width)
        self.lc.SetColumnWidth(1, wx.DLG_SZE(self,  300,-1).width)
        #self.lc.SetFont(self.font)
        rowlc=0
        cod = self.cnt[4]
        descriz = self.cnt[5]
        if cod=="":
            sql = """ select * from piacon where descriz like "%s" order by descriz desc """
            valueSql = '%' + cod + '%'            
        else :
            sql = """ select * from piacon where cod like "%s" order by descriz desc """
            valueSql = '%' + descriz + '%'       
        try:
            cr = self.CnAz.cursor ()
            cr.execute(sql % valueSql)
            rows = cr.fetchall()
            for row in rows:
                for rowlc in range(1):
                    row_lc = self.lc.GetItemCount()
                    cod = str(row[0])
                    descriz = str(row[1])
                    self.lc.InsertStringItem(rowlc, cod)
                    self.lc.SetStringItem(rowlc, 1, descriz)
                    self.lc.SetItemData(0,0)
        except StandardError, msg:
            self.__FRM__.MsgErr("SrcPiaC"," Fnd Error %s " % (msg)) 
Пример #6
0
    def __init__(self,parent):
        #self.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.NORMAL, False))        
        nPanel.__init__(self, parent=parent, id=-1, name='', 
              pos=wx.Point(0, 0), size=parent.GetSize())
        self.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.NORMAL, False))
                
        wx.StaticText(self, -1, _("Azienda:"), wx.DLG_PNT(self, 5,12))
        self.az = nComboBox(self, -1, "", wx.DLG_PNT(self, 50,10), 
              wx.DLG_SZE(self, 150,-1))
        #carico la lista delle aziende
        self.az.SetNProperty("SELECT rag_soc1,cod FROM aziende ",
                connessione=self.GetGrandParent().GetConnDbAz())
        
        wx.StaticText(self, -1, _("Postazione:"), wx.DLG_PNT(self, 5,27))
        self.post = nComboBox(self, -1, "",
                      wx.DLG_PNT(self, 50,25), wx.DLG_SZE(self, 150,-1))        
        self.post.Enable(False,ALL_CONTROL)
        
        wx.StaticText(self, -1, _("Operatore:"), wx.DLG_PNT(self, 5,42))
        self.ute = nComboBox(self, -1, "",
                      wx.DLG_PNT(self, 50,40), wx.DLG_SZE(self, 150,-1),[], 
              wx.TE_PROCESS_ENTER )    
 
        self.ute.SetNProperty("SELECT UTE, cod  FROM utenti",
                            connessione=self.GetGrandParent().GetConnDbAz())
        
        wx.StaticText(self, -1, _("Password :"******"",
                      wx.DLG_PNT(self, 50,55), wx.DLG_SZE(self, 47,-1),
                      wx.TE_PASSWORD|wx.TE_PROCESS_ENTER)
        
        
        wx.StaticText(self, -1, _("Anni Competenza :"), wx.DLG_PNT(self, 5,72))
        self.anno_da = nTextCtrl(self, -1, "",
              wx.DLG_PNT(self, 75,70), wx.DLG_SZE(self, 35,-1))
        self.anno_da.Enable(False,ALL_CONTROL) 
        #self.anno_da.SetValue(util.eseguiSql(sql))
                                     
        wx.StaticText(self, -1, "/", wx.DLG_PNT(self, 112,72))
        self.anno_a = nComboBox(self, -1, "", wx.DLG_PNT(self, 117,70), 
              wx.DLG_SZE(self, 35,-1), [], 
              wx.CB_DROPDOWN | wx.TE_PROCESS_ENTER ) 
        self.anno_a.Enable(False,ALL_CONTROL) 
        #self.anno_a.SetNProperty(sql)        
        self.abl = nGenControl(self)
        wx.StaticText(self, -1, _("Data di Lavoro :"), wx.DLG_PNT(self, 5,87))        
        self.datac  = wx.DatePickerCtrl(self, pos=wx.DLG_PNT(self, 75,85),
                                        size= wx.DLG_SZE(self, 80,-1),
                                        style=wx.DP_DROPDOWN | wx.DP_SHOWCENTURY | wx.TE_PROCESS_ENTER)      

        self.ok = wx.Button(self, -1,_("Accedi"), wx.DLG_PNT(self, 45,110), 
              wx.DLG_SZE(self,cfg.btnSzeLH,cfg.btnSzeV))
        self.canc = wx.Button(self, -1,_("Esci"), wx.DLG_PNT(self, 110,110), 
              wx.DLG_SZE(self,cfg.btnSzeLH,cfg.btnSzeV))      
Пример #7
0
 def set_size(self, value):
     #if not self.widget: return
     if self.properties['size'].is_active():
         v = self.properties['size'].get_value().strip()
         use_dialog_units = v and v[-1] == 'd'
     else:
         use_dialog_units = config.preferences.use_dialog_units  #False
     try:
         "" + value
     except TypeError:
         pass
     else:  # value is a string-like object
         if value and value.strip()[-1] == 'd':
             use_dialog_units = True
             value = value[:-1]
     try:
         size = [int(t.strip()) for t in value.split(',', 1)]
     except:
         self.properties['size'].set_value(self.size)
     else:
         if use_dialog_units and value[-1] != 'd': value += 'd'
         self.size = value
         if self.widget:
             if use_dialog_units: size = wx.DLG_SZE(self.widget, size)
             if misc.check_wx_version(2, 5):
                 self.widget.SetMinSize(size)
             self.widget.SetSize(size)
             try:
                 #self.sizer.set_item(self.pos, size=self.widget.GetSize())
                 self.sizer.set_item(self.pos, size=size)
             except AttributeError:
                 pass
Пример #8
0
 def set_int_flag(self, flags):
     self.flag = flags
     if not self.widget: return
     try:
         try:
             sp = self.properties['size']
             size = sp.get_value().strip()
             if size[-1] == 'd':
                 size = size[:-1]
                 use_dialog_units = True
             else:
                 use_dialog_units = False
             w, h = [int(v) for v in size.split(',')]
             if use_dialog_units:
                 w, h = wx.DLG_SZE(self.widget, (w, h))
             size = [w, h]
         except ValueError:
             size = None
         if not (flags & wx.EXPAND) and \
            not self.properties['size'].is_active():
             size = list(self.widget.GetBestSize())
         self.sizer.set_item(self.pos, flag=flags, size=size)
     except AttributeError, e:
         import traceback
         traceback.print_exc()
Пример #9
0
    def _update_sizer_item(self):
        # update the widget by calling self.sizer.set_item (again)
        if not self.widget: return

        #border = self.border
        #proportion = self.option
        #flags = self.flag
        # get size from property
        try:
            size_prop = self.properties['size']
            if size_prop.is_active(
            ):  # or use get_value, which will now return the default value if disabled
                size = self.size
                if size[-1] == 'd':
                    size = size[:-1]
                    use_dialog_units = True
                else:
                    use_dialog_units = False
                size = [int(v) for v in size.split(',')]
                if use_dialog_units:
                    size = wx.DLG_SZE(self.widget, size)
            else:
                if not (self.flag & wx.EXPAND):
                    size = self.widget.GetBestSize()
                else:
                    size = (-1, -1
                            )  # would None or wx.DefaultSize be better`?`

            #self.sizer.set_item(self.pos, border=self.border, option=self.option, flag=self.flag, size=size)
            self.sizer.item_layout_property_changed(self.pos, size=size)
        except AttributeError:
            self._logger.exception(_('Internal Error'))
Пример #10
0
    def __set_properties(self):
        """ Set the properties of frame and controls """

        self.SetTitle("MIST : MIcroSimulation Tool")
        self.SetBackgroundColour(
            wx.SystemSettings_GetColour(wx.SYS_COLOUR_3DFACE))

        self.st_title.SetFont(wx.Font(16, wx.DEFAULT, wx.SLANT, wx.BOLD, 0,
                                      ""))

        self.lc_project.AllowBlank = False  # set this property, if you don't want to add a blank line at the top of a list control
        self.lc_project.SetMinSize(wx.DLG_SZE(self.lc_project, (320, 200)))

        # Create columns and assign column titles
        # Symtax : tuple of tuples ((Column Name, width), (Column Name, width). ... )
        self.lc_project.CreateColumns(
            (('#', 30), ('Project Name', 250), ('Notes', 350)))

        self.btn_state.SetMinSize((200, -1))

        # Assign form names as UserData of each button
        # Module name is same as form name in current version
        self.btn_state.userData = 'States'
        self.btn_trans.userData = 'Transitions'
        self.btn_study_model.userData = 'StudyModels'
        self.btn_pset.userData = 'PopulationSets'
        self.btn_params.userData = 'Parameters'
Пример #11
0
 def Start(self, event):
     self.lc.ClearAll()
     self.lc.InsertColumn(0, _("Codice"))
     self.lc.InsertColumn(1, _("Descrizione"))
     self.lc.InsertColumn(2, _("Q.ta` Saldo"))
     self.lc.InsertColumn(3, _("Valore"))
     self.lc.SetColumnWidth(0, wx.DLG_SZE(self, 60, -1).width)
     self.lc.SetColumnWidth(1, wx.DLG_SZE(self, 120, -1).width)
     self.lc.SetColumnWidth(2, wx.DLG_SZE(self, 60, -1).width)
     self.lc.SetColumnWidth(3, wx.DLG_SZE(self, 100, -1).width)
     font = self.GetFont()
     self.lc.SetFont(font)
     self.FndSelInv(self)
     self.int.Enable(False)
     self.canc.Enable(True)
     self.cod.SetFocus()
Пример #12
0
 def __set_properties(self):
     # begin wxGlade: MessageDialog.__set_properties
     self.SetTitle(_("wxGlade message"))
     self.SetSize(wx.DLG_SZE(self, (250, 112)))
     self.msg_title.SetFont(
         wx.Font(-1, wx.DEFAULT, wx.NORMAL, wx.BOLD, 0, ""))
     self.msg_image.SetMinSize((48, 48))
Пример #13
0
 def __set_properties(self):
     # begin wxGlade: wxgGenericEditAreaDlg2.__set_properties
     self.SetTitle(_("GNUmed generic EditArea dialog"))
     self.SetSize(wx.DLG_SZE(self, (393, 201)))
     self.SetMinSize((450, 300))
     self._PNL_ea.SetScrollRate(10, 10)
     self._TCTRL_status.SetBackgroundColour(
         wx.SystemSettings_GetColour(wx.SYS_COLOUR_BACKGROUND))
     self._TCTRL_status.SetForegroundColour(wx.Colour(255, 127, 0))
     self._BTN_save.SetToolTipString(
         _("Save the entered data into the database and close the dialog."))
     self._BTN_extra_left.SetToolTipString(
         _("Programmer forgot tooltip for left extra button."))
     self._BTN_extra_left.Hide()
     self._BTN_forward.SetToolTipString(
         _("Save data into database and clear fields for another value."))
     self._BTN_revert.SetToolTipString(
         _("Reset all fields to their previous values."))
     self._BTN_revert.Enable(False)
     self._BTN_revert.Hide()
     self._BTN_clear.SetToolTipString(_("Clear all fields."))
     self._BTN_cancel.SetToolTipString(
         _("Cancel editing the data and discard changes."))
     self._BTN_lucky.SetToolTipString(
         _("Press me !\n\n(This will NOT endanger any data.)"))
Пример #14
0
 def __init__(self, parent=None):
     wx.Dialog.__init__(self, parent, wx.ID_ANY, "", style=0)
     self.__MDI__ = wx.GetApp().GetPhasisMdi()
     self.SetFont(self.__MDI__.font)
     sz = wx.BoxSizer(wx.VERTICAL)
     self.NavListBox = wx.ListCtrl(
         self,
         wx.ID_ANY,
         wx.DefaultPosition,
         wx.DLG_SZE(self, 220 / 2, 250 / 2),  # wx.Size(200, 150), 
         style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.LC_SINGLE_SEL)
     self.NavListBox.SetImageList(self.__MDI__.icolistctrl,
                                  wx.IMAGE_LIST_SMALL)
     self.NavListBox.InsertColumn(0, "")
     self.NavListBox.SetFont(self.__MDI__.font)
     self.NavListBox.SetColumnWidth(0, wx.DLG_SZE(self, 200 / 2, -1).width)
     #self.IDItem = -1
     self.IDMap = []
     x = 0
     for i in self.__MDI__.notepageID:
         self.NavListBox.InsertImageStringItem(
             x, " " + self.__MDI__.vcMENU[i][4], self.__MDI__.icotab)
         self.IDMap.append(i)
         x = x + 1
     for i in self.__MDI__.frampageID:
         self.NavListBox.InsertImageStringItem(
             x, " " + self.__MDI__.vcMENU[i][4], self.__MDI__.icowin)
         self.IDMap.append(i)
         x = x + 1
     testo = wx.StaticText(self,
                           wx.ID_ANY,
                           _("MODULI APERTI"),
                           style=wx.ALIGN_CENTRE)
     testo.SetFont(self.__MDI__.font)
     testo.Centre(wx.HORIZONTAL)
     testo.SetBackgroundColour(wx.RED)
     testo.ClearBackground()
     sz.Add(testo, 0, wx.EXPAND)
     sz.Add(self.NavListBox, 1, wx.EXPAND | wx.ALL, 10)
     self.SetSizer(sz)
     sz.Fit(self)
     sz.SetSizeHints(self)
     sz.Layout()
     self.NavListBox.Focus(0)
     self.NavListBox.Select(0)
     self.NavListBox.Bind(wx.EVT_LIST_KEY_DOWN, self.EvtChar)
     self.NavListBox.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnItemSelected)
 def MakeLabel(self, ctrl, txt, no_match=False):
     """Set up a label control's text."""
     lbl = txt
     if no_match:
         lbl += ' ' + self.no_match_literal
     ctrl.SetLabelText(lbl)
     ctrl.SetMinSize(
         wx.DLG_SZE(self, ctrl.GetTextExtent(ctrl.GetLabelText())))
Пример #16
0
 def MakeLabel(self, ctrl, txt, required):
     """Set up the text for a label control."""
     lbl = txt
     if required:
         lbl += ' ' + self.required_literal
     ctrl.SetLabelText(lbl)
     ctrl.SetMinSize(
         wx.DLG_SZE(self, ctrl.GetTextExtent(ctrl.GetLabelText())))
Пример #17
0
    def Start(self, event):
        self.vCF.Show(False)
        self.codcf.SetValue('')
        self.ragsoc1.SetValue('')
        self.vCF.SetValue('C')
        self.sCF = ''
        self.SelCOMBOcf(self)



        self.lc.ClearAll()
        self.lc.InsertColumn(0, _("Anno"),width=cfg._COLSZ0_)
        self.lc.InsertColumn(1, _("Num. Mov."),width=cfg._COLSZ0_)
        self.lc.InsertColumn(2, _("Data Mov."),width=cfg._COLSZ0_)
        self.lc.InsertColumn(3, _("Num. Riga"),width=cfg._COLSZ0_)
        self.lc.InsertColumn(4, _("Anno IVA"),width=cfg._COLSZ0_)
        self.lc.InsertColumn(5, _("Div"),width=cfg._COLSZ0_)
        self.lc.InsertColumn(6, _("PDC"),width=cfg._COLSZ0_)
        self.lc.InsertColumn(7, _("Descrizione Operazione"),width=wx.DLG_SZE(self.pnl, 150,-1).width) #
        self.lc.InsertColumn(8, _("Importo"),width=wx.DLG_SZE(self.pnl, 60,-1).width)      #
        self.lc.InsertColumn(9, _("Imponibile"),width=cfg._COLSZ0_)     
        self.lc.InsertColumn(10, _("Anno Doc."),width=cfg._COLSZ0_)
        self.lc.InsertColumn(11, _("Tipo Doc."),width=cfg._COLSZ0_)
        self.lc.InsertColumn(12, _("Data Doc."),width=wx.DLG_SZE(self.pnl, 50,-1).width)#
        self.lc.InsertColumn(13, _("Num Doc."),width=wx.DLG_SZE(self.pnl, 50,-1).width)#
        self.lc.InsertColumn(14, _("Num Doc1."),width=cfg._COLSZ0_)
        self.lc.InsertColumn(15, _("Conto"),width=cfg._COLSZ0_)
        self.lc.InsertColumn(16, _("Totale Doc."),width=wx.DLG_SZE(self.pnl, 60,-1).width)#
        self.lc.InsertColumn(17, _("segno"),width=cfg._COLSZ0_)
        self.lc.InsertColumn(18, _("Tipo CPart"),width=cfg._COLSZ0_)
        self.lc.InsertColumn(19, _("Cod CF"),width=cfg._COLSZ0_)        
        self.lc.InsertColumn(20, _("Cambio"),width=cfg._COLSZ0_)
        self.lc.InsertColumn(21, _("Tipo IVA"),width=cfg._COLSZ0_)
        self.lc.InsertColumn(22, _("Tipo IVA1"),width=cfg._COLSZ0_)
        self.lc.InsertColumn(23, _("Aliq. IVA"),width=cfg._COLSZ0_)
        self.lc.InsertColumn(24, _("Registro"),width=cfg._COLSZ0_)
        self.lc.InsertColumn(25, _("Imponib"),width=cfg._COLSZ0_)
        self.lc.InsertColumn(26, _("Rigagior"),width=cfg._COLSZ0_)
        self.lc.InsertColumn(27, _("Paggior"),width=cfg._COLSZ0_)
        self.lc.InsertColumn(28, _("Note"),width=cfg._COLSZ0_)
        
        font = self.GetFont()
        self.lc.SetFont(font)
        self.inte.Show(False)
        self.canc.Show(True)
        self.ragsoc1.SetFocus()
Пример #18
0
 def Start(self, evt):
     self.lc.ClearAll()
     self.lc.InsertColumn(0, _("Numero"))
     self.lc.InsertColumn(1, _("Data mov."))
     self.lc.InsertColumn(2, _("Causa mag."))
     self.lc.InsertColumn(3, _("Q.ta` carico"))
     self.lc.InsertColumn(4, _("Q.ta` scarico"))
     self.lc.InsertColumn(5, _("Prezzo"))
     self.lc.InsertColumn(6, _("Totale"))
     self.lc.SetColumnWidth(0, wx.DLG_SZE(self, 30, -1).width)
     self.lc.SetColumnWidth(1, wx.DLG_SZE(self, 45, -1).width)
     self.lc.SetColumnWidth(2, wx.DLG_SZE(self, 45, -1).width)
     self.lc.SetColumnWidth(3, wx.DLG_SZE(self, 50, -1).width)
     self.lc.SetColumnWidth(4, wx.DLG_SZE(self, 50, -1).width)
     self.lc.SetColumnWidth(5, wx.DLG_SZE(self, 60, -1).width)
     self.lc.SetColumnWidth(6, wx.DLG_SZE(self, 60, -1).width)
     self.codbar.Enable(False)
     self.codart.Enable(False)
     self.descriz.Enable(False)
     self.ccodbar.Enable(False)
     self.ccodart.Enable(False)
     self.cdescriz.Enable(False)
     self.costo.Enable(False)
     self.prezzo1.Enable(False)
     self.codart.SetValue(self.cnt[0])
     self.descriz.SetValue(self.cnt[1])
     self.costo.SetValue(self.cnt[2])
     self.prezzo1.SetValue(self.cnt[3])
     self.qt_car.Enable(False)
     self.qt_sca.Enable(False)
     self.qt_sal.Enable(False)
     self.FndMovCodArt(self)
Пример #19
0
    def LC_clear(self, evt):
        self.lc.ClearAll()
        self.lc.InsertColumn(0, _("Anno"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(1, _("Numero."), width=cfg._COLSZ0_)
        self.lc.InsertColumn(2, _("Data Reg."), width=cfg._COLSZ0_)
        self.lc.InsertColumn(3, _("Num. Riga"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(4, _("Anno IVA"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(5, _("Cod. Div"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(6, _("Causale"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(7,
                             _("Descrizione Operazione"),
                             width=wx.DLG_SZE(self.pnl, 150, -1).width)  #
        self.lc.InsertColumn(8, _("Importo"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(9, _("Imponibile"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(10, _("Anno Doc."), width=cfg._COLSZ0_)
        self.lc.InsertColumn(11, _("Tipo Doc."), width=cfg._COLSZ0_)
        self.lc.InsertColumn(12, _("Data Doc."), width=cfg._COLSZ0_)
        self.lc.InsertColumn(13, _("Num Doc."), width=cfg._COLSZ0_)
        self.lc.InsertColumn(14, _("Num Doc1."), width=cfg._COLSZ0_)
        self.lc.InsertColumn(15, _("Conto"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(16, _("Importo"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(17, _("Segno"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(18, _("CPartita"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(19, _("Cambio"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(20, _("Tipo IVA"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(21, _("Tipo IVA1"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(22, _("Aliq. IVA"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(23, _("Registro"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(24, _("Imponibile"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(25, _("Rigagior"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(26, _("Paggior"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(27, _("Note"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(28, _("STT_MOV"), width=cfg._COLSZ0_)
        self.lc.InsertColumn(29,
                             _("Conto Dare/Avere"),
                             width=wx.DLG_SZE(self.pnl, 60, -1).width)  #
        self.lc.InsertColumn(30,
                             _("Importo Dare"),
                             width=wx.DLG_SZE(self.pnl, 50, -1).width)  #
        self.lc.InsertColumn(31,
                             _("Importo Avere"),
                             width=wx.DLG_SZE(self.pnl, 50, -1).width)  #

        self.lc.SetBackgroundColour(self.color)
        self.lc.Enable(False)
Пример #20
0
    def __init__(self, parent):
        wx.Panel.__init__(self, parent)

        self.list = wx.ListBox(self, -1,
                              wx.DLG_PNT(self, 10, 10), wx.DLG_SZE(self, 100, 100),
                              [])
        self.Bind(wx.EVT_LISTBOX, self.OnSelect, self.list)
        self.Bind(wx.EVT_LISTBOX_DCLICK, self.OnDClick, self.list)

        wx.Button(self, -1, "Try it!", wx.DLG_PNT(self, 120, 10)).SetDefault()
        self.Bind(wx.EVT_BUTTON, self.OnDClick)

        self.text = wx.TextCtrl(self, -1, "",
                               wx.DLG_PNT(self, 10, 115),
                               wx.DLG_SZE(self, 200, 50),
                               wx.TE_MULTILINE | wx.TE_READONLY)

        for item in theTests:
            self.list.Append(item[0])
Пример #21
0
    def __init__(self,
                 parent,
                 id,
                 title,
                 pos=wx.DefaultPosition,
                 size=wx.DefaultSize,
                 style=wx.DEFAULT_DIALOG_STYLE,
                 name=wx.DialogNameStr):
        """Initialize the dialog box."""
        wx.Dialog.__init__(self, parent, id, title, pos, size, style, name)

        GetLogger().debug("PWD init")

        self.password_label = None
        self.password_text = None

        self.password_literal = "Enter your password:"******"PWD init done")
Пример #22
0
    def __init__(self, parent, id, title):
        # First, call the base class' __init__ method to create the frame
        wx.Frame.__init__(self, parent, id, title, (100, 100), (160, 100))

        # Associate some events with methods of this class
        self.Bind(wx.EVT_SIZE, self.OnSize)
        self.Bind(wx.EVT_MOVE, self.OnMove)
        self.Bind(wx.EVT_CLOSE, self.OnCloseWindow)

        # Add a panel and some controls to display the size and position
        panel = wx.Panel(self, -1)

        wx.StaticText(panel, -1, "Size:", wx.DLG_PNT(panel, (4, 4)),
                      wx.DefaultSize)

        wx.StaticText(panel, -1, "Pos:", wx.DLG_PNT(panel, (4, 16)),
                      wx.DefaultSize)

        self.sizeCtrl = wx.TextCtrl(panel, -1, "", wx.DLG_PNT(panel, (24, 4)),
                                    wx.DLG_SZE(panel, (36, -1)),
                                    wx.TE_READONLY)

        self.posCtrl = wx.TextCtrl(panel, -1, "", wx.DLG_PNT(panel, (24, 16)),
                                   wx.DLG_SZE(panel, (36, -1)), wx.TE_READONLY)
Пример #23
0
 def Start(self, event):
     self.vTIPO_DOC.Enable(False)
     self.vTIPO_DOC.Show(False)
     self.vTIPO_DOC.SetValue(self.vTIPO_DOC.GetValue())
     self.lc.ClearAll()
     self.lc.InsertColumn(0, _("Num Doc"))
     self.lc.InsertColumn(1, _("Vs. Data"))
     self.lc.InsertColumn(2, _("Cod. Anag"))
     self.lc.InsertColumn(3, _("Rag. Soc.1 Cognome"))
     self.lc.InsertColumn(4, _("Rag. Soc.2 Nome"))
     self.lc.InsertColumn(5, _("Cod. Age"))
     self.lc.InsertColumn(6, _("Data Doc"))
     self.lc.InsertColumn(7, _("Tipo Doc"))
     self.lc.InsertColumn(8, _("Anno"))
     self.lc.SetColumnWidth(0, wx.DLG_SZE(self, 37, -1).width)
     self.lc.SetColumnWidth(1, wx.DLG_SZE(self, 50, -1).width)
     self.lc.SetColumnWidth(2, wx.DLG_SZE(self, 40, -1).width)
     self.lc.SetColumnWidth(3, wx.DLG_SZE(self, 90, -1).width)
     self.lc.SetColumnWidth(4, wx.DLG_SZE(self, 90, -1).width)
     self.lc.SetColumnWidth(5, wx.DLG_SZE(self, 30, -1).width)
     self.lc.SetColumnWidth(6, wx.DLG_SZE(self, 50, -1).width)
     self.lc.SetColumnWidth(7, wx.DLG_SZE(self, 20, -1).width)
     self.lc.SetColumnWidth(8, wx.DLG_SZE(self, 30, -1).width)
     #self.lc.SetFont(self.font)
     self.stt_doc.Show(False)
     if self.vTIPO_DOC.GetValue() == 'B1':
         self.rbNOEVA.SetValue(True)
         self.stt_doc.SetValue("C")
         self.rbEVA.Show(True)
         self.rbNOEVA.Show(True)
     else:
         self.stt_doc.SetValue("E")
         self.rbEVA.Show(False)
         self.rbNOEVA.Show(False)
     if self.cod.GetValue() == '' or self.cod.GetValue() == 'None':
         self.FndSelDoc(self)
         self.rs.SetFocus()
     else:
         self.FndSelDocCodArt(self)
         self.cod.SetFocus()
     self.RadioB(self)
Пример #24
0
 def ClearLC(self, event):
     self.lc.ClearAll()
     self.lc.InsertColumn(0, _("Num Ord"))
     self.lc.InsertColumn(1, _("Data Ord"))
     self.lc.InsertColumn(2, _("Tipo"))
     self.lc.InsertColumn(3, _("Ragione Sociale ( Cognome Nome)"))
     self.lc.InsertColumn(4, _("Vs. Data"))
     self.lc.InsertColumn(5, _("Anno"))
     self.lc.InsertColumn(6, _("Telefono"))
     self.lc.InsertColumn(7, _("Mobile"))
     self.lc.SetColumnWidth(0, wx.DLG_SZE(self, 40, -1).width)
     self.lc.SetColumnWidth(1, wx.DLG_SZE(self, 40, -1).width)
     self.lc.SetColumnWidth(2, wx.DLG_SZE(self, 20, -1).width)
     self.lc.SetColumnWidth(3, wx.DLG_SZE(self, 150, -1).width)
     self.lc.SetColumnWidth(4, wx.DLG_SZE(self, 40, -1).width)
     self.lc.SetColumnWidth(5, wx.DLG_SZE(self, 30, -1).width)
     self.lc.SetColumnWidth(6, wx.DLG_SZE(self, 60, -1).width)
     self.lc.SetColumnWidth(7, wx.DLG_SZE(self, 60, -1).width)
Пример #25
0
 def ClearLC(self, evt):
     self.lc.ClearAll()
     self.lc.InsertColumn(0, _("Codice"))
     self.lc.InsertColumn(1, _("Descriz"))
     self.lc.InsertColumn(2, _("UM"))
     self.lc.InsertColumn(3, _("TG"))
     self.lc.InsertColumn(4, _("Prezzo1"))
     self.lc.InsertColumn(5, _("Prezzo2"))
     self.lc.InsertColumn(6, _("Costo"))
     self.lc.InsertColumn(7, _("BarCode"))
     self.lc.SetColumnWidth(0, wx.DLG_SZE(self, 65, -1).width)
     self.lc.SetColumnWidth(1, wx.DLG_SZE(self, 150, -1).width)
     self.lc.SetColumnWidth(2, wx.DLG_SZE(self, 20, -1).width)
     self.lc.SetColumnWidth(3, wx.DLG_SZE(self, 20, -1).width)
     self.lc.SetColumnWidth(4, wx.DLG_SZE(self, 60, -1).width)
     self.lc.SetColumnWidth(5, wx.DLG_SZE(self, 60, -1).width)
     self.lc.SetColumnWidth(6, wx.DLG_SZE(self, 60, -1).width)
     self.lc.SetColumnWidth(7, wx.DLG_SZE(self, 0, -1).width)
Пример #26
0
 def __set_properties(self):
     # begin wxGlade: formAtmosphere.__set_properties
     self.SetTitle("Configure Atmosphere")
     self.SetSize(wx.DLG_SZE(self, (140, 70)))
     self.label_0.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['rho'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['rho'].SetValidator(numberValidator())
     self.label_1.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['u'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['u'].SetValidator(numberValidator())
     self.label_2.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['p'].SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.data['p'].SetValidator(numberValidator())
     self.panel_configure.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.panel_configure.SetScrollRate(10, 10)
     self.accept.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
     self.cancel.SetFont(wx.Font(8, wx.DEFAULT, wx.NORMAL, wx.NORMAL, 0, "Sans"))
Пример #27
0
 def __set_properties(self):
     # begin wxGlade: wxgEdcCalculatorDlg.__set_properties
     self.SetTitle(_("Due Date Calculator"))
     self.SetSize(wx.DLG_SZE(self, (400, 200)))
     self._PRW_lmp.SetToolTipString(
         _("Required: Enter the 1st day of the Last Menstrual Period."))
     self._CHBOX_first_pregnancy.SetToolTipString(
         _("Check here if this is the first pregnancy."))
     self._CHBOX_first_pregnancy.SetValue(1)
     self._PRW_edc.SetToolTipString(
         _("Expected Date of Confinement.\n\nYou can also just enter a date here if one is known from external sources."
           ))
     self._TCTRL_details.SetBackgroundColour(
         wx.SystemSettings_GetColour(wx.SYS_COLOUR_BACKGROUND))
     self._TCTRL_algo.SetBackgroundColour(
         wx.SystemSettings_GetColour(wx.SYS_COLOUR_BACKGROUND))
     self._BTN_save.SetToolTipString(_("Save the Expected Due Date."))
     self._BTN_cancel.SetToolTipString(_("Close without saving."))
Пример #28
0
 def __set_properties(self):
     # begin wxGlade: frameShuffleNew.__set_properties
     self.SetTitle(_("ShuffleIR Mobile"))
     self.list_box_1.SetMinSize(wx.DLG_SZE(self.list_box_1, (-1, 55)))
     self.checkbox_Barrier.SetValue(1)
     self.radio_Metal.SetSelection(4)
     self.block.SetSize(self.block.GetBestSize())
     self.block_copy_5.SetSize(self.block_copy_5.GetBestSize())
     self.block_copy_11.SetSize(self.block_copy_11.GetBestSize())
     self.block_copy_17.SetSize(self.block_copy_17.GetBestSize())
     self.block_copy_23.SetSize(self.block_copy_23.GetBestSize())
     self.block_copy_29.SetSize(self.block_copy_29.GetBestSize())
     self.block_copy.SetSize(self.block_copy.GetBestSize())
     self.block_copy_6.SetSize(self.block_copy_6.GetBestSize())
     self.block_copy_12.SetSize(self.block_copy_12.GetBestSize())
     self.block_copy_18.SetSize(self.block_copy_18.GetBestSize())
     self.block_copy_24.SetSize(self.block_copy_24.GetBestSize())
     self.block_copy_30.SetSize(self.block_copy_30.GetBestSize())
     self.block_copy_1.SetSize(self.block_copy_1.GetBestSize())
     self.block_copy_7.SetSize(self.block_copy_7.GetBestSize())
     self.block_copy_13.SetSize(self.block_copy_13.GetBestSize())
     self.block_copy_19.SetSize(self.block_copy_19.GetBestSize())
     self.block_copy_25.SetSize(self.block_copy_25.GetBestSize())
     self.block_copy_31.SetSize(self.block_copy_31.GetBestSize())
     self.block_copy_2.SetSize(self.block_copy_2.GetBestSize())
     self.block_copy_8.SetSize(self.block_copy_8.GetBestSize())
     self.block_copy_14.SetSize(self.block_copy_14.GetBestSize())
     self.block_copy_20.SetSize(self.block_copy_20.GetBestSize())
     self.block_copy_26.SetSize(self.block_copy_26.GetBestSize())
     self.block_copy_32.SetSize(self.block_copy_32.GetBestSize())
     self.block_copy_3.SetSize(self.block_copy_3.GetBestSize())
     self.block_copy_9.SetSize(self.block_copy_9.GetBestSize())
     self.block_copy_15.SetSize(self.block_copy_15.GetBestSize())
     self.block_copy_21.SetSize(self.block_copy_21.GetBestSize())
     self.block_copy_27.SetSize(self.block_copy_27.GetBestSize())
     self.block_copy_33.SetSize(self.block_copy_33.GetBestSize())
     self.block_copy_4.SetSize(self.block_copy_4.GetBestSize())
     self.block_copy_10.SetSize(self.block_copy_10.GetBestSize())
     self.block_copy_16.SetSize(self.block_copy_16.GetBestSize())
     self.block_copy_22.SetSize(self.block_copy_22.GetBestSize())
     self.block_copy_28.SetSize(self.block_copy_28.GetBestSize())
     self.block_copy_34.SetSize(self.block_copy_34.GetBestSize())
     self.radio_box_1.SetSelection(0)
Пример #29
0
 def ClearLC(self, evt):
     self.lc.ClearAll()
     self.lc.InsertColumn(0, _("Codice"))
     self.lc.InsertColumn(1, _("Descriz"))
     self.lc.InsertColumn(2, _("UM"))
     self.lc.InsertColumn(5, _("TG"))
     self.lc.InsertColumn(3, _("Imponibile"))
     self.lc.InsertColumn(4, _("Prezzo"))
     self.lc.SetColumnWidth(0, wx.DLG_SZE(self, 50, -1).width)
     self.lc.SetColumnWidth(1, wx.DLG_SZE(self, 145, -1).width)
     self.lc.SetColumnWidth(2, wx.DLG_SZE(self, 20, -1).width)
     self.lc.SetColumnWidth(3, wx.DLG_SZE(self, 20, -1).width)
     self.lc.SetColumnWidth(3, wx.DLG_SZE(self, 60, -1).width)
     self.lc.SetColumnWidth(4, wx.DLG_SZE(self, 60, -1).width)
Пример #30
0
 def set_border(self, value):
     self.border = int(value)
     if not self.widget: return
     try:
         sp = self.properties['size']
         size = sp.get_value().strip()
         if size[-1] == 'd':
             size = size[:-1]
             use_dialog_units = True
         else:
             use_dialog_units = False
         w, h = [int(v) for v in size.split(',')]
         if use_dialog_units:
             w, h = wx.DLG_SZE(self.widget, (w, h))
         if w == -1: w = self.widget.GetSize()[0]
         if h == -1: h = self.widget.GetSize()[1]
         self.sizer.set_item(self.pos, border=int(value), size=(w, h))
     except AttributeError, e:
         import traceback
         traceback.print_exc()