Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~5K People Reached
Favorite Forums
Favorite Tags
Member Avatar for explorepython

I've created two dialogs in which Dialog1 is the parent of Dialog2. After navigating to dialog2 if i press close button in Dialog2, Dialog2 is closed but Dialog1 is displayed. Again i've to press the close button in Dialog1 to close the application (i know this happens coz. the close …

Member Avatar for bferg88
0
2K
Member Avatar for explorepython

hi all, In the example below [CODE]from PyQt4 import QtCore, QtGui class Ui_Dialog(QtGui.QDialog): def __init__(self,parent=None): QtGui.QDialog.__init__(self,parent) self.setObjectName("Dialog") self.resize(600, 500) self.model = QtGui.QDirModel() self.tree = QtGui.QTreeView() self.tree.setModel(self.model) print(self.model.flags(self.model.index("c:\Program Files"))) self.model.setFilter(QtCore.QDir.Dirs|QtCore.QDir.NoDotAndDotDot) self.tree.setSortingEnabled(True) self.tree.setRootIndex(self.model.index("c:\Program Files")) #self.tree.hideColumn(1) #self.tree.hideColumn(2) #self.tree.hideColumn(3) self.tree.setWindowTitle("Dir View") self.tree.resize(400, 480) self.tree.setColumnWidth(0,200) self.tree.show() QtCore.QObject.connect(self.tree, QtCore.SIGNAL("clicked(QModelIndex)"), self.test) QtCore.QMetaObject.connectSlotsByName(self) self.setWindowTitle(QtGui.QApplication.translate("Dialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8)) def …

0
211
Member Avatar for explorepython

Hello all, After googling around for a few hours i can't find any example for passing arguments to an user-defined method in pyqt.. The only link i found related to this is [URL="http://www.commandprompt.com/community/pyqt/x1408"]http://www.commandprompt.com/community/pyqt/x1408[/URL] . In this example we have to make it to emit the signal and pass the argument.. …

Member Avatar for explorepython
0
1K
Member Avatar for explorepython

Hello all, I want to display a hyperlink in qt. For this i need to display the link for the url (as underlined text). I can achieve it easily using style sheets and the url can be opened with webbrowser module.. I want to get the clicked signal of the …

Member Avatar for explorepython
0
723
Member Avatar for explorepython

Can you please tell me why i can't run this sample test program?? [CODE]from PyQt4 import QtGui class testui(QtGui.QTabWidget): def __init__(self,parent=None): QtGui.QTabWidget.__init__(self) def test(self): QtGui.QMessageBox.warning(self,"Hello","This is a test message") def frun(objec): time.sleep(8) print('hello') objec.test() app=QtGui.QApplication(sys.argv) obj=testui() obj.show() threading.Thread(target=frun,args=(obj,)).start() app.exec_()[/CODE] But in real i want to receive messages from the threads …

Member Avatar for explorepython
0
592