Re: [PyQt] QUrl paths under Windows seem weird

2009-02-06 Thread Sergio Jovani
A Divendres 06 Febrer 2009 15:42:30, Grzegorz Adam Hankiewicz va escriure: > El 06/02/2009, a las 15:19, Sergio Jovani escribió: > > Hi, > > > > Even it is not a Qt method, you can do it with os.path.normcase(). > > That function doesn't help at all, did you try it

Re: [PyQt] QUrl paths under Windows seem weird

2009-02-06 Thread Sergio Jovani
A Divendres 06 Febrer 2009 14:48:39, Grzegorz Adam Hankiewicz va escriure: > Hello. > > I'm implementing a drag and drop application where the user drags > files from the explorer and drops them on a label. The label processes > the files and loads them. > > Under MacOSX this is working all well, b

Re: [PyQt] Dialogue box with hyperlink

2009-01-27 Thread Sergio Jovani
A Dimarts 27 Gener 2009 21:11:22, Darryl Wallace va escriure: > Hello, > > > Has anyone somewhere an example code of a small dialogue box which > > contains a hyperlink to a web site? > > > > I would like to point the user to some web site, in the confirmation > > dialogue I want to show. > > Quick

Re: [PyQt] QDesktopServices openUrl doesn't work if URL-Path has spaces etc.

2009-01-26 Thread Sergio Jovani
A Dilluns 26 Gener 2009 09:59:58, piotr maliński va escriure: > print QUrl.fromLocalFile(x).isValid() > d.openUrl(QUrl.fromLocalFile(x)) > > It's valid, but still doesn't work > It's rare... It works for me... What Platform do you use? If Linux, what desktop environment?

Re: [PyQt] QDesktopServices openUrl doesn't work if URL-Path has spaces etc.

2009-01-26 Thread Sergio Jovani
Hi, You have to specify fromLocalFile() in QUrl(): DesktopServices().openUrl(QUrl.fromLocalFile("/home/piotr/test2/lol bar/photo_4900_8ea80c_huge.jpg")) Bye! 2009/1/26 piotr maliński : > > > 2009/1/26 David Boddie >> >> On Sun Jan 25 22:17:46 GMT 2009, piotr malinski wrote: >> >> > Here is an

[PyQt] Replace HTML characters

2009-01-21 Thread Sergio Jovani
Hi list, I would like to ask if there is any Qt-way to converting HTML characters like "Á", "Ó" to Unicode characters ("Á", "Ó"). If there is not a Qt-way I would like to know if there is a Python module/function to doing that. I only found this: https://fisheye.toolserver.org/browse/~raw,r=5846/p

Re: [PyQt] Threads with PyQt. Qt's or Python's?

2009-01-19 Thread Sergio Jovani
Sorry! thread = Thread(self) self.connet(thread, SIGNAL("Signal"), self.Slot) thread.start() 2009/1/19 Sergio Jovani : > Hi, > > I always used QThread and emit() in order to communicate with main > QThread without problems: > > thread = Thread(self) > sel

Re: [PyQt] Threads with PyQt. Qt's or Python's?

2009-01-19 Thread Sergio Jovani
Hi, I always used QThread and emit() in order to communicate with main QThread without problems: thread = Thread(self) self.connet(thread, SIGNAL("Signal")) thread.start() 2009/1/19 Christoph Burgmer : > Am Monday, 19. January 2009 schrieb Giovanni Bajo: > >> On 1/19/2009 3:13 PM, eliben wrote:

Re: [PyQt] Problem calling a window

2009-01-15 Thread Sergio Jovani
Hi, If you want to call a QMainWindow from a QDialog you have to set a parent. exec_() gets attribute error because I thought it was a QDialog :P Try with this: wndMain = Pro2MainWindow(self) # <--- set as parent QDialog wndMain.showMaximized() self.hide() 2009/1/15 Sandro Dutra : > Sorry for t

Re: [PyQt] Problem calling a window

2009-01-14 Thread Sergio Jovani
It would be good you post more code, at least, Pro2MainWindow class. 2009/1/14 Sandro Dutra : > I get a AttibuteError in mainWnd.exec_() > > If necessary, I can upload the complete code. > > Thanks in advance. > > 2009/1/13 Sergio Jovani >> >> Hi, >> >

Re: [PyQt] Application built with py2exe doesn't display jpg/gif images in QWebView

2009-01-13 Thread Sergio Jovani
I had this problem. I solved it copying C:\Python26\Lib\site-packages\PyQt4\plugins\imageformats\qjpeg4.dll to dist\imageformats\. I my build script I have: build.bat == C:\python26\python.exe setup.win32.py py2exe --includes sip ... mkdir dist\imageformats copy C:\Python26\Lib\site-packa

Re: [PyQt] Problem calling a window

2009-01-13 Thread Sergio Jovani
Hi, This is a little piece of code, but you can try with: mainWnd = Pro2MainWindow() mainWnd.exec_() mainWnd.showMaximized() self.hide() 2009/1/13 Sandro Dutra : > I'm writing a solution using Python, Qt and MySQL, I create the logi

[PyQt] Pause QProcess

2009-01-13 Thread Sergio Jovani
Hi list! In my application I've created a process with QProcess and 'ffmpeg' program. I offer to user cancelling process calling kill() method, but I don't know if pausing it would be possible. Is there any way to pause QProcess in a safe-way? Thanks!

Re: [PyQt] Problem with apps build with Py2exe

2009-01-09 Thread Sergio Jovani
Hi, That problem appeared on my software. The best choice is to use version 2.5. PyQt4 for Python 2.6 compiled code requires MSCV to work. Bye! 2009/1/9 piotr maliński : > Yes, Python, 2.6 and latest PyQt4 build for windows/Py2.6 > > 2009/1/9 Giovanni Bajo >> >> On ven, 2009-01-09 at 10:07 +010

[PyQt] Desktop Filedialog Integration

2008-12-27 Thread Sergio Jovani
Hi! I wanted to add desktop file dialog integration to my program. I've written some code to do checks in order to get what program it have to use (zenity, kdialog). I used QProcess in order to launch dialogs and all work very fine. Now I want get same relationship between windows (QMainWindow an

Re: [PyQt] QThread problem

2008-12-10 Thread Sergio Jovani
El Monday 08 December 2008 03:53:28 vàreu escriure: > On Mon, Dec 8, 2008 at 12:53 AM, Sergio Jovani <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I'm developing a downloads application and I have created a QThread for > > that reason. I start the QT

Re: [PyQt] QThread problem

2008-12-08 Thread Sergio Jovani
> I'm going to throw this out there, you should exchange information via > signals/slots. When you get a cancel use terminate() slot. That will > stop it from freezing you program from the looks of it. I tried and I get the same running terminate() slot from signal and outside. Thanks. ___

Re: [PyQt] QThread problem

2008-12-08 Thread Sergio Jovani
El Monday 08 December 2008 17:19:42 vàreu escriure: > Hello, > > Sergio Jovani wrote > > > class Download(QThread): > > def __init__(self, url, path, filename, parent = None): > > QThread.__init__(self, parent) > > self.pa

Re: [PyQt] QThread problem

2008-12-08 Thread Sergio Jovani
> On lun, 2008-12-08 at 01:53 +0100, Sergio Jovani wrote: > > I'm developing a downloads application and I have created a QThread > > for that reason. > > You don't need threads to download files with PyQt. In fact, it's far > easier wit

[PyQt] QThread problem

2008-12-08 Thread Sergio Jovani
El Monday 08 December 2008 03:53:28 vàreu escriure: > On Mon, Dec 8, 2008 at 12:53 AM, Sergio Jovani <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I'm developing a downloads application and I have created a QThread for > > that reason. I start the QT

[PyQt] QThread problem

2008-12-07 Thread Sergio Jovani
Hi all, I'm developing a downloads application and I have created a QThread for that reason. I start the QThread with no problems, but when I try terminate it clicking on cancel pushbutton, I can't, application freezes. Thanks in advance. Here the code: --- class MainWindow(QMainWindow):

Re: [PyQt] Re: Strings with variables in TS-File can not be loaded

2008-09-16 Thread Sergio Jovani
El Tuesday 16 September 2008 15:55:23 Alberto Berti va escriure: > >>>>> "Sergio" == Sergio Jovani <[EMAIL PROTECTED]> writes: > > Sergio> Source code: DurationMsg=self.tr("Duration: %s min" % > Sergio> duration) > > mmm but

[PyQt] Call a window from other parent window

2007-10-16 Thread Sergio Jovani Guzmán
window? Many thanks! -- Sergio Jovani ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt