I have a Python application using PyQT4 to build the GUI, on Linux works fine, but on Windows the signals aren't being received :/
My code is:
import sys
sys.path.append("..")
from ui import Ui_MainWindow
from dlgContador import Ui_dlgContador
from PyQt4 import QtCore, QtGui
from funciones.archivosOps import archivosOps
class ArchivosGui(QtGui.QMainWindow):
def __init__(self):
self.archivo=None
self.app=QtGui.QApplication(sys.argv)
QtGui.QMainWindow.__init__(self)
self.mainWindow=Ui_MainWindow()
self.mainWindow.setupUi(self)
self.__connectFunctions()
self.setWindowTitle("Editor de Texto")
self.show()
self.app.exec_()
pass
def __connectFunctions(self):
self.connect(self.mainWindow.actionAbrir,QtCore.SIGNAL("activated()"), self.abrir)
self.connect(self.mainWindow.actionContar_Palabras,QtCore.SIGNAL("activated()"),self.info)
self.connect(self.mainWindow.actionGuardar,QtCore.SIGNAL("activated()"),self.guardar)
self.connect(self.mainWindow.actionGuardarComo,QtCore.SIGNAL("activated()"),self.guardarComo)
pass
What i'm doing wrong ? :/