<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    ciao scusamis e telastresso ancora<br>
    ora  va pero provavo a collegare il bottone  al  def  per  farlo
    aprire  e mi da   questo  errore <br>
    <br>
    attribute error ui_ftpeo object has no sttribute tr <br>
    <br>
    # -*- coding: utf-8 -*-<br>
    <br>
    # Form implementation generated from reading ui file 'ftpeo.ui'<br>
    #<br>
    # Created: Sat Apr 14 22:40:09 2012<br>
    #      by: PyQt4 UI code generator 4.8.5<br>
    #<br>
    # WARNING! All changes made in this file will be lost!<br>
    <br>
    from PyQt4 import QtCore, QtGui<br>
    <br>
    try:<br>
        _fromUtf8 = QtCore.QString.fromUtf8<br>
    except AttributeError:<br>
        _fromUtf8 = lambda s: s<br>
    <br>
    class Ui_FtpeO(object):<br>
        def setupUi(self, FtpeO):<br>
            FtpeO.setObjectName(_fromUtf8("FtpeO"))<br>
            FtpeO.resize(622, 594)<br>
            FtpeO.setWindowTitle(QtGui.QApplication.translate("FtpeO",
    "FtpeO", None, QtGui.QApplication.UnicodeUTF8))<br>
            icon = QtGui.QIcon()<br>
           
    icon.addPixmap(QtGui.QPixmap(_fromUtf8("://ftpeo/icone/lion-icon.png")),
    QtGui.QIcon.Normal, QtGui.QIcon.Off)<br>
            FtpeO.setWindowIcon(icon)<br>
            FtpeO.setAutoFillBackground(False)<br>
            FtpeO.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)<br>
            self.centralwidget = QtGui.QWidget(FtpeO)<br>
            self.centralwidget.setObjectName(_fromUtf8("centralwidget"))<br>
            self.gridLayout_2 = QtGui.QGridLayout(self.centralwidget)<br>
            self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2"))<br>
            self.lineEdit = QtGui.QLineEdit(self.centralwidget)<br>
            self.lineEdit.setObjectName(_fromUtf8("lineEdit"))<br>
            self.gridLayout_2.addWidget(self.lineEdit, 0, 0, 1, 3)<br>
    <br>
            self.pushButton_3 = QtGui.QPushButton(self.centralwidget)<br>
           
    self.pushButton_3.setToolTip(QtGui.QApplication.translate("FtpeO",
    "Carica i file da uplodare si devono \n"<br>
    "chiamare perforza Slide1.jpg", None,
    QtGui.QApplication.UnicodeUTF8))<br>
           
    self.pushButton_3.setText(QtGui.QApplication.translate("FtpeO",
    "Carica", None, QtGui.QApplication.UnicodeUTF8))<br>
            self.pushButton_3.setObjectName(_fromUtf8("pushButton_3"))<br>
            <br>
    #fName = QtGui.QFileDialog.getOpenFileName(self, Button_3, "Open new
    file", self.tr("All Files (*);;Text Files (*txt)"))<br>
    <br>
    <br>
            self.gridLayout_2.addWidget(self.pushButton_3, 0, 3, 1, 1)<br>
            self.lineEdit_2 = QtGui.QLineEdit(self.centralwidget)<br>
            self.lineEdit_2.setObjectName(_fromUtf8("lineEdit_2"))<br>
            self.gridLayout_2.addWidget(self.lineEdit_2, 1, 0, 1, 3)<br>
            self.pushButton_4 = QtGui.QPushButton(self.centralwidget)<br>
           
    self.pushButton_4.setToolTip(QtGui.QApplication.translate("FtpeO",
    "Carica i file da uplodare si devono \n"<br>
    "chiamare perforza Slide2.jpg", None,
    QtGui.QApplication.UnicodeUTF8))<br>
           
    self.pushButton_4.setText(QtGui.QApplication.translate("FtpeO",
    "Carica", None, QtGui.QApplication.UnicodeUTF8))<br>
            self.pushButton_4.setObjectName(_fromUtf8("pushButton_4"))<br>
            self.gridLayout_2.addWidget(self.pushButton_4, 1, 3, 1, 1)<br>
            self.lineEdit_3 = QtGui.QLineEdit(self.centralwidget)<br>
            self.lineEdit_3.setObjectName(_fromUtf8("lineEdit_3"))<br>
            self.gridLayout_2.addWidget(self.lineEdit_3, 2, 0, 1, 3)<br>
            self.pushButton_5 = QtGui.QPushButton(self.centralwidget)<br>
           
    self.pushButton_5.setToolTip(QtGui.QApplication.translate("FtpeO",
    "Carica i file da uplodare si devono \n"<br>
    "chiamare perforza Slide3.jpg", None,
    QtGui.QApplication.UnicodeUTF8))<br>
           
    self.pushButton_5.setText(QtGui.QApplication.translate("FtpeO",
    "Carica", None, QtGui.QApplication.UnicodeUTF8))<br>
            self.pushButton_5.setObjectName(_fromUtf8("pushButton_5"))<br>
            self.gridLayout_2.addWidget(self.pushButton_5, 2, 3, 1, 1)<br>
            self.comboBox = QtGui.QComboBox(self.centralwidget)<br>
           
    self.comboBox.setToolTip(QtGui.QApplication.translate("FtpeO",
    "Seleziona il Drive", None, QtGui.QApplication.UnicodeUTF8))<br>
            self.comboBox.setObjectName(_fromUtf8("comboBox"))<br>
            self.gridLayout_2.addWidget(self.comboBox, 3, 2, 1, 1)<br>
            self.treeWidget = QtGui.QTreeWidget(self.centralwidget)<br>
            self.treeWidget.setObjectName(_fromUtf8("treeWidget"))<br>
            self.treeWidget.headerItem().setText(0,
    QtGui.QApplication.translate("FtpeO", "Nome", None,
    QtGui.QApplication.UnicodeUTF8))<br>
            self.treeWidget.headerItem().setText(1,
    QtGui.QApplication.translate("FtpeO", "Dimensioni", None,
    QtGui.QApplication.UnicodeUTF8))<br>
            self.treeWidget.headerItem().setText(2,
    QtGui.QApplication.translate("FtpeO", "Permessi", None,
    QtGui.QApplication.UnicodeUTF8))<br>
            self.gridLayout_2.addWidget(self.treeWidget, 4, 0, 1, 1)<br>
            self.gridLayout = QtGui.QGridLayout()<br>
            self.gridLayout.setObjectName(_fromUtf8("gridLayout"))<br>
            self.pushButton_2 = QtGui.QPushButton(self.centralwidget)<br>
           
    self.pushButton_2.setToolTip(QtGui.QApplication.translate("FtpeO",
    "Trasferisci File da Server a Pc", None,
    QtGui.QApplication.UnicodeUTF8))<br>
            icon1 = QtGui.QIcon()<br>
           
    icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/ftpeo/icone/areao43/scalable/actions/forward.svg")),
    QtGui.QIcon.Normal, QtGui.QIcon.Off)<br>
            self.pushButton_2.setIcon(icon1)<br>
            self.pushButton_2.setShortcut(_fromUtf8("Right"))<br>
            self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))<br>
            self.gridLayout.addWidget(self.pushButton_2, 0, 0, 1, 1)<br>
            self.pushButton = QtGui.QPushButton(self.centralwidget)<br>
           
    self.pushButton.setToolTip(QtGui.QApplication.translate("FtpeO",
    "Trasferisci File da Pc a Server", None,
    QtGui.QApplication.UnicodeUTF8))<br>
            icon2 = QtGui.QIcon()<br>
           
    icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/ftpeo/icone/areao43/scalable/actions/back.svg")),
    QtGui.QIcon.Normal, QtGui.QIcon.Off)<br>
            self.pushButton.setIcon(icon2)<br>
           
    self.pushButton.setShortcut(QtGui.QApplication.translate("FtpeO",
    "Left", None, QtGui.QApplication.UnicodeUTF8))<br>
            self.pushButton.setObjectName(_fromUtf8("pushButton"))<br>
            self.gridLayout.addWidget(self.pushButton, 1, 0, 1, 1)<br>
            self.pushButton_7 = QtGui.QPushButton(self.centralwidget)<br>
           
    self.pushButton_7.setToolTip(QtGui.QApplication.translate("FtpeO",
    "Cancella File", None, QtGui.QApplication.UnicodeUTF8))<br>
            icon3 = QtGui.QIcon()<br>
           
    icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/ftpeo/icone/areao43/scalable/actions/editclear.svg")),
    QtGui.QIcon.Normal, QtGui.QIcon.Off)<br>
            self.pushButton_7.setIcon(icon3)<br>
           
    self.pushButton_7.setShortcut(QtGui.QApplication.translate("FtpeO",
    "Del", None, QtGui.QApplication.UnicodeUTF8))<br>
            self.pushButton_7.setObjectName(_fromUtf8("pushButton_7"))<br>
            self.gridLayout.addWidget(self.pushButton_7, 2, 0, 1, 1)<br>
            self.gridLayout_2.addLayout(self.gridLayout, 4, 1, 1, 1)<br>
            self.treeWidget_2 = QtGui.QTreeWidget(self.centralwidget)<br>
            self.treeWidget_2.setObjectName(_fromUtf8("treeWidget_2"))<br>
            self.treeWidget_2.headerItem().setText(0,
    QtGui.QApplication.translate("FtpeO", "Nome", None,
    QtGui.QApplication.UnicodeUTF8))<br>
            self.treeWidget_2.headerItem().setText(1,
    QtGui.QApplication.translate("FtpeO", "Dimensioni", None,
    QtGui.QApplication.UnicodeUTF8))<br>
            self.treeWidget_2.headerItem().setText(2,
    QtGui.QApplication.translate("FtpeO", "Permessi", None,
    QtGui.QApplication.UnicodeUTF8))<br>
            self.gridLayout_2.addWidget(self.treeWidget_2, 4, 2, 1, 2)<br>
            FtpeO.setCentralWidget(self.centralwidget)<br>
            self.menubar = QtGui.QMenuBar(FtpeO)<br>
            self.menubar.setGeometry(QtCore.QRect(0, 0, 622, 25))<br>
            self.menubar.setObjectName(_fromUtf8("menubar"))<br>
            self.menuFile = QtGui.QMenu(self.menubar)<br>
            self.menuFile.setTitle(QtGui.QApplication.translate("FtpeO",
    "File", None, QtGui.QApplication.UnicodeUTF8))<br>
            self.menuFile.setObjectName(_fromUtf8("menuFile"))<br>
            self.menuHelp = QtGui.QMenu(self.menubar)<br>
            self.menuHelp.setTitle(QtGui.QApplication.translate("FtpeO",
    "Help", None, QtGui.QApplication.UnicodeUTF8))<br>
            self.menuHelp.setObjectName(_fromUtf8("menuHelp"))<br>
            FtpeO.setMenuBar(self.menubar)<br>
            self.statusbar = QtGui.QStatusBar(FtpeO)<br>
            self.statusbar.setObjectName(_fromUtf8("statusbar"))<br>
            FtpeO.setStatusBar(self.statusbar)<br>
            self.actionDisconnetti = QtGui.QAction(FtpeO)<br>
           
    self.actionDisconnetti.setText(QtGui.QApplication.translate("FtpeO",
    "Connetti", None, QtGui.QApplication.UnicodeUTF8))<br>
           
    self.actionDisconnetti.setObjectName(_fromUtf8("actionDisconnetti"))<br>
            self.actionDisconnetti_2 = QtGui.QAction(FtpeO)<br>
           
    self.actionDisconnetti_2.setText(QtGui.QApplication.translate("FtpeO",
    "Disconnetti", None, QtGui.QApplication.UnicodeUTF8))<br>
           
    self.actionDisconnetti_2.setObjectName(_fromUtf8("actionDisconnetti_2"))<br>
            self.actionEsci = QtGui.QAction(FtpeO)<br>
           
    self.actionEsci.setText(QtGui.QApplication.translate("FtpeO",
    "Esci", None, QtGui.QApplication.UnicodeUTF8))<br>
           
    self.actionEsci.setShortcut(QtGui.QApplication.translate("FtpeO",
    "Ctrl+Q", None, QtGui.QApplication.UnicodeUTF8))<br>
            self.actionEsci.setObjectName(_fromUtf8("actionEsci"))<br>
            self.actionInfo = QtGui.QAction(FtpeO)<br>
           
    self.actionInfo.setText(QtGui.QApplication.translate("FtpeO",
    "Info", None, QtGui.QApplication.UnicodeUTF8))<br>
            self.actionInfo.setObjectName(_fromUtf8("actionInfo"))<br>
            self.menuFile.addSeparator()<br>
            self.menuFile.addAction(self.actionDisconnetti)<br>
            self.menuFile.addAction(self.actionDisconnetti_2)<br>
            self.menuFile.addAction(self.actionEsci)<br>
            self.menuHelp.addAction(self.actionInfo)<br>
            self.menubar.addAction(self.menuFile.menuAction())<br>
            self.menubar.addAction(self.menuHelp.menuAction())<br>
    <br>
            self.retranslateUi(FtpeO)<br>
            QtCore.QObject.connect(self.actionEsci,
    QtCore.SIGNAL(_fromUtf8("activated()")), FtpeO.close)<br>
            QtCore.QObject.connect(self.pushButton_3,
    QtCore.SIGNAL(_fromUtf8("clicked()")), self.openFile)<br>
            QtCore.QMetaObject.connectSlotsByName(FtpeO)<br>
            FtpeO.setTabOrder(self.pushButton_3, self.pushButton_4)<br>
            FtpeO.setTabOrder(self.pushButton_4, self.pushButton_5)<br>
            FtpeO.setTabOrder(self.pushButton_5, self.comboBox)<br>
            FtpeO.setTabOrder(self.comboBox, self.pushButton_2)<br>
            FtpeO.setTabOrder(self.pushButton_2, self.pushButton)<br>
            FtpeO.setTabOrder(self.pushButton, self.pushButton_7)<br>
            FtpeO.setTabOrder(self.pushButton_7, self.treeWidget_2)<br>
            FtpeO.setTabOrder(self.treeWidget_2, self.treeWidget)<br>
            FtpeO.setTabOrder(self.treeWidget, self.lineEdit)<br>
            FtpeO.setTabOrder(self.lineEdit, self.lineEdit_2)<br>
            FtpeO.setTabOrder(self.lineEdit_2, self.lineEdit_3)<br>
    <br>
        def retranslateUi(self, FtpeO):<br>
            pass<br>
    <br>
    #import FTpeo_qrc<br>
    <br>
    <br>
        def openFile(self):<br>
                  fName = QtGui.QFileDialog.getOpenFileName(self, "de ma
    de", "Open new file", self.tr("All Files (*);;Text Files (*txt)"))<br>
    <br>
                  if fName.isEmpty() == False:<br>
                          self.textEdit.append(fName)<br>
    <br>
    <br>
    <br>
    if __name__ == "__main__":<br>
        import sys<br>
        app = QtGui.QApplication(sys.argv)<br>
        FtpeO = QtGui.QMainWindow()<br>
        ui = Ui_FtpeO()<br>
        ui.setupUi(FtpeO)<br>
        FtpeO.show()<br>
        sys.exit(app.exec_())<br>
    <br>
    <br>
    <br>
    Il 18/04/2012 14:50, Giuseppe Amato ha scritto:
    <blockquote
cite="mid:CAEmjXoOz5z_aK9wAqH4BY19Fye=Bu4iCzgPLXjfU1dvWY0E1nw@mail.gmail.com"
      type="cite"><br>
      <br>
      <div class="gmail_quote">2012/4/18 Stefano Cerbioni <span
          dir="ltr"><<a moz-do-not-send="true"
            href="mailto:stfn77@gmail.com">stfn77@gmail.com</a>></span><br>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <br>
          #import FTpeo_qrc<br>
           def LoadFiles( self ):      <br>
        </blockquote>
      </div>
      <br>
      Il def deve stare uno spazio più indietro. Se non è questo prova a
      controllare se non hai mischiato spazi e tabulazioni. <br
        clear="all">
      <br>
      -- <br>
----------------------------------------------------------------------<br>
      Giuseppe Amato<br>
      e-mail: <a moz-do-not-send="true"
        href="mailto:giuamato@gmail.com" target="_blank">giuamato@gmail.com</a>
      <div
style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Python mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Python@lists.python.it">Python@lists.python.it</a>
<a class="moz-txt-link-freetext" href="http://lists.python.it/mailman/listinfo/python">http://lists.python.it/mailman/listinfo/python</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>