Re: [PyQt] Populating a listWidget with a list of files

2010-03-05 Thread jaybstory
ce on how to achieve this. jaybstory wrote: > > Hello, > > I wanted to know how to have a list widget contain a list of files. > Basically, I want to be able to give a path to a list of video files and > have the video file names displayed in a list widget. Then I want the &g

[PyQt] Populating a listWidget with a list of files

2010-03-03 Thread jaybstory
Hello, I wanted to know how to have a list widget contain a list of files. Basically, I want to be able to give a path to a list of video files and have the video file names displayed in a list widget. Then I want the user be able to click a file which will open an external program. I can alre

Re: [PyQt] Embedding VLC

2010-02-28 Thread jaybstory
I've heard about the phonon-vlc-backend which appears to not be available yet. Is this what you are talking about? Bugzilla from chri...@gmx.de wrote: > > Am Samstag, 27. Februar 2010 schrieb jaybstory: >> I wanted to know if it is possible to embed VLC into a GUI (or to u

[PyQt] Embedding VLC

2010-02-26 Thread jaybstory
Hello, I wanted to know if it is possible to embed VLC into a GUI (or to use QProcess to somehow open the external application inside a GUI), if so, how would I go about accomplishing this? Right now, I am using QProcess to open external applications which open in a separate window. I want t

Re: [PyQt] QPrintDialog (pyqt4)

2010-02-19 Thread jaybstory
> printLabel = QtGui.QLabel() > printLabel.setPixmap(p) > painter = QtGui.QPainter(printer) > printLabel.render(painter) > painter.end() > > > jaybstory wrote: >> I understand your example for printing Labels. I'm wonderi

Re: [PyQt] QPrintDialog (pyqt4)

2010-02-19 Thread jaybstory
I understand your example for printing Labels. I'm wondering if there is a way to just print the entire GUI? I tried to do this, but its not correct: def printd(self): printer=QtGui.QPrinter() dialog = QtGui.QPrintDialog(printer, self) if(dialog.

Re: [PyQt] QPrintDialog (pyqt4)

2010-02-19 Thread jaybstory
Thank you, that was helpful. Russell Valentine wrote: > > Joi Barnett wrote: >> thank you for the reply, >> >> do you have an example of how to use QPrinter in python? > > > I didn't have one, but I just made one really quick. Very simple > example. I Cc'd the list in case anyone else h

Re: [PyQt] QPrintDialog (pyqt4)

2010-02-17 Thread jaybstory
() QtCore.QObject.connect(self.pd,SIGNAL("accepted(QPrinter*)"),SLOT("print (QPrinter *)")) but I know this isn't right and I'm not sure how to fix this. jaybstory wrote: > > Hello, > > I am trying to print my gui, however I am having trouble. I have a button >

[PyQt] QPrintDialog (pyqt4)

2010-02-16 Thread jaybstory
Hello, I am trying to print my gui, however I am having trouble. I have a button with a signal as clicked and slot as printd(which is my function that I am calling QPrintDialog. In printd, I have this code: [CODE] def printd(self): pd = QtGui.QPrintDialog(self) pd.exec_() [