Re: [PyQt] D-Bus support for Windows

2012-01-23 Thread Lukas Hetzenecker
> If you have any more questions feel free to ask me, > Lukas > > 2011/12/28 Phil Thompson : >> On Wed, 28 Dec 2011 11:30:11 +0100, Lukas Hetzenecker >> wrote: >>> Hello Phil and all interested community members, >>> >>> I'd like to ask you

[PyQt] D-Bus support for Windows

2011-12-28 Thread Lukas Hetzenecker
Hello Phil and all interested community members, I'd like to ask you if you have any plans to add support for Windows to your D-Bus mainloop implementation. Some time ago there was a discussion on the dbus mailing list: http://web.archiveorange.com/archive/v/2mxmYng5gCA0MCJamGh9 The D-Bus server

[PyQt] Scolling problem in Tabbed MDI with different Statusbars

2010-09-24 Thread Lukas Hetzenecker
Hello, I used a QTabWidget for my implementation of a Tabbed Document Interface. The widgets in this tabs are QTextBrowsers (or QWebViews). I also have an own statusbar for each tab. If I change the tab of my QTabWidget the QStatusBar is replaced and afterwards the content of the QTextBrowser ge

Re: [PyQt] QNetworkAccessManager and "finished" signal

2010-04-13 Thread Lukas Hetzenecker
Hello, please make sure that you have the event loop running (QApplication.exec_) and use finished(QNetworkReply *) instead of finished(QNetworkReply) as argument for the SIGNAL. Lukas Am Dienstag 13 April 2010 15:48:22 schrieb Andreas Neumann: > Hi, > > I am trying to fetch an image with the

Re: [PyQt] [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2010-03-23 Thread Lukas Hetzenecker
Hello, this seems to be a bug of matplotlib in versions < 0.98.6 (it started working in recent svn revisions) I did not find a proper workaround, but this quick hack fixed it: if not matplotlib.compare_versions(matplotlib.__version__, '0.98.6svn'): self.resize(self.size().width()+1, self.siz

Re: [PyQt] strange QWebView/QWebPage behavior

2010-01-08 Thread Lukas Hetzenecker
Hello, Am Freitag 08 Januar 2010 19:33:50 schrieben Sie: > In this case, the "on_load_finished" function is NOTcalled What PyQt version are you using? This worked for me without any problems: lu...@laptop ~ $ python test.py on load finish called I'm using PyQt4 4.6.2 Greetings, Lukas ___

Re: [PyQt] Icon sidepane in Windows Vista/7

2009-12-14 Thread Lukas Hetzenecker
Hello, Am Montag 14 Dezember 2009 14:49:37 schrieb David Boddie: > On Sun Dec 13 20:17:49 GMT 2009, Lukas Hetzenecker wrote: > > Could anybody help me with this issue? > > It's the last bug in my application that needs to be fixed, before I can > > release a new version

Re: [PyQt] Install script for Python applications

2009-12-12 Thread Lukas Hetzenecker
es that it needs and copy these to /usr/lib/python2.6/site-packages? Thanks for your help, Lukas Am Freitag 11 Dezember 2009 13:37:01 schrieb Darren Dale: > On Fri, Dec 11, 2009 at 6:11 AM, Lukas Hetzenecker wrote: > > Hello, > > > > I've developed a application using Py

[PyQt] Install script for Python applications

2009-12-11 Thread Lukas Hetzenecker
Hello, I've developed a application using Python and PyQt4. What is the best way to make a install.py / setup.py / Makefile for installing this application? It should check if all depencies are found (this should be really simple: try: import xxx except ImportError: print ""; sys.exit(2) ) It

[PyQt] Icon sidepane in Windows Vista/7

2009-12-08 Thread Lukas Hetzenecker
Hello, i have a QListWidget that displays a button bar, like in KDEs Kontact. I attached my current implementation. This works fine with Linux/Oxygen theme (as you can see in this screenshot: http://imagebin.ca/img/Od0zEZ.jpg ) and Windows XP, but looks ugly in Windows Vista and Windows 7 (as yo

Re: [PyQt] Garbage collection, signals to partial functions

2009-10-28 Thread Lukas Hetzenecker
This seems to work for me too. lu...@laptop ~ $ python gb.py None <__main__.A object at 0x7f9baff6ef30> > None <__main__.A object at 0x7f9baff6ef30> > 2 [] python-2.6-9.fc11.x86_64 and PyQt4-4.5.4-1.fc11.x86_64 under Linux Am Mittwoch 28 Oktober 2009 18:35:13 schrieb Martin Teichmann: > Hi L

Re: [PyQt] Model/View programming

2009-09-25 Thread Lukas Hetzenecker
Hello, thanks for your help again. It works like a charm now. Lukas Am Donnerstag 24 September 2009 21:11:34 schrieb David Boddie: > On Tue Sep 22 01:37:33 BST 2009, David Boddie wrote: > > I tried running your test case and found that the view displayed various > > items in an incomplete way -

[PyQt] Model/View programming

2009-09-21 Thread Lukas Hetzenecker
Hello, i have some problems with my first attempt to use Model/View programming: I tried to create a Model for a directory list. The folders are located on a mobile phone and I get the content over Obex and Bluetooth, so the communication can be really slow -> The model should be asynchronous.

Re: [PyQt] handling Enter in a qtextedit?

2009-09-08 Thread Lukas Hetzenecker
u only have to install a event filter for all widgets you want to get the events and emit a signal in the eventFilter method. > > On Tue, Sep 8, 2009 at 6:19 AM, Lukas Hetzenecker wrote: > > Hello, > > > > > The documentation for keyPressEvent for a QTextEdit says > >

Re: [PyQt] handling Enter in a qtextedit?

2009-09-08 Thread Lukas Hetzenecker
...), so you don't have to subclass QTextEdit and you get the events for the text edit too - I could provide you an example if you want. http://series60-remote.svn.sf.net/viewvc/series60- remote/trunk/pc/widget/MessageTextEdit.py?view=markup #!/usr/bin/env python # -*- coding: utf-

Re: [PyQt] Detecting if a column has been resized by the user; auto-stretching columns.

2009-08-17 Thread Lukas Hetzenecker
Hello, just found this thread and wanted to know if it is possible to auto-stretch the _first_ column? Thanks, Lukas Am Donnerstag 04 Dezember 2008 01:07:56 schrieb David Boddie: > On Wed Dec 3 17:10:00 GMT 2008, Anonymous wrote: > > Thanks for the response, but i saw that in the documentation

Re: [PyQt] Calling slots in a QThread?

2009-08-13 Thread Lukas Hetzenecker
nstration. Comments are welcome ;) #!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2009 Lukas Hetzenecker import random from PyQt4.QtCore import * from PyQt4.QtGui import * class ThreadBase(QThread): def __init__(self, parent=None): QThread.__init__(self) self.parent

Re: [PyQt] Calling slots in a QThread?

2009-08-12 Thread Lukas Hetzenecker
19:04:46 Lukas Hetzenecker wrote: > > is it possible to connect signals from a Widget to a slot in a QThread > > and ensure that the Widget responds to keypress and mouse events? > > I attached my first try, but it doesn't work, the UI blocks until the > > execution of

[PyQt] Calling slots in a QThread?

2009-08-12 Thread Lukas Hetzenecker
Hello, is it possible to connect signals from a Widget to a slot in a QThread and ensure that the Widget responds to keypress and mouse events? I attached my first try, but it doesn't work, the UI blocks until the execution of the function is finished. Thanks for your help, Lukas import time f

Re: [PyQt] QFileDialog.getOpenFileNames selection?

2009-08-08 Thread Lukas Hetzenecker
Hello, try this: for file in fileName: print file or: fileName = list(fileName) print fileName Lukas Am Samstag 08 August 2009 22:27:19 schrieb rudsonal...@yahoo.com.br: > How I get names selected in QFileDialog.getOpenFileNames? > > >>> fileName = QFileDialog.getOpenFileNames(None,"Open >

Re: [PyQt] Problem with resizing rubberband

2009-07-30 Thread Lukas Hetzenecker
Just got this mail: -- Forwarded message -- Subject: Re: [PyQt] Problem with resizing rubberband Date: Donnerstag 30 Juli 2009 From: Shriramana Sharma To: Lukas Hetzenecker Hello. I have attached my rubberband label class which solves the problem. I trust that you will be

Re: [PyQt] Problem with resizing rubberband

2009-07-30 Thread Lukas Hetzenecker
Hello, could anybody solve this issue? I ran into a similar issue when I tried to use QRubberBand to select an area of a QImage - are there any useful examples for this? Thanks, Lukas Am Freitag 08 Mai 2009 11:45:53 schrieb Shriramana Sharma: > Hello. I previously reported a problem with drawin

[PyQt] Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-21 Thread Lukas Hetzenecker
m Dienstag 21 Juli 2009 20:31:55 schrieb Darren Dale: > On Tue, Jul 21, 2009 at 12:06 PM, Lukas Hetzenecker wrote: > > Sorry for annoying you, but I attatched a new example to this message: > > I've rewritten the PyQt4-example from the website to draw the Figure in a > > ta

[PyQt] Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-20 Thread Lukas Hetzenecker
9 12:58:53 schrieb Lukas Hetzenecker: > Hello, > > I've tried to resize the QTabWidget, I've searched for examples on the > internet, added a QTabWidget and used this as the Mainwindows central > widget - but exactly the same happened. > > It works if I replace the Figu

[PyQt] Re: [Matplotlib-users] Strange issue when using Matplotlib with PyQt4

2009-07-19 Thread Lukas Hetzenecker
bView. Am Sonntag 19 Juli 2009 11:54:12 schrieb projetmbc: > Lukas Hetzenecker a écrit : > > I tried to embed a Matplotlib FigureCanvas into a QTabWidget. > > But at the first start of my script - the main.py in the attatched > > example - the widget in the Tab is incorr

[PyQt] Strange issue when using Matplotlib with PyQt4

2009-07-18 Thread Lukas Hetzenecker
Hello, I tried to embed a Matplotlib FigureCanvas into a QTabWidget. But at the first start of my script - the main.py in the attatched example - the widget in the Tab is incorrectly sized. If I embed the FigureCanvas in a QTabWidget the widget is to big, but if I put it in a QWidget it is shown

Re: [PyQt] Catching exceptions everywhere

2009-05-08 Thread Lukas Hetzenecker
23:32:26,Lukas Hetzenecker 写道: > > > Hello, > > > > you could redirect the interpreter’s standard error output stream: > > sys.stderr = YourClass(window.edit, sys.__stderr__, QColor(Qt.red)) > > YourClass in an "file-like" object (it has an write fu

Re: [PyQt] Catching exceptions everywhere

2009-05-07 Thread Lukas Hetzenecker
Hello, you could redirect the interpreter’s standard error output stream: sys.stderr = YourClass(window.edit, sys.__stderr__, QColor(Qt.red)) YourClass in an "file-like" object (it has an write function) window.edit is an instance of Qt's QTextEdit class and is used to display the message. Her

[PyQt] copy.deepcopy and PyQt?

2009-04-30 Thread Lukas Hetzenecker
Hello, i noticed a problem when I tried the attatched script: If a object is derived from QObject and i make a deepcopy of this object, all member variables get lost. If I derive from object it works perfectly. Please look at the attatched example. It produces the following output: Hello World f

Re: [PyQt] Re: I am not geting Oxygen Theme in my PyQt application

2009-04-30 Thread Lukas Hetzenecker
Hello, could you please post the source of the python file? Is it possible that you're using PyQt3 instead of PyQt4? Greetings, Lukas Am Donnerstag 30 April 2009 11:29:38 schrieb ap: > I did not get an answer for this query yet. :( > > On Mon, Apr 6, 2009 at 3:22 PM, Anoop wrote: > > Hi there,

Re: [PyQt] Inverse setModel

2009-04-17 Thread Lukas Hetzenecker
Hello, did you mean QAbstractItemView.setModel and QAbstractItemView.model? Am Freitag 17 April 2009 21:15:44 schrieb F.A. Pinkse: > Hello All, > > Yes I know it is probably the wrong group, but > > Am I missing the reverse of QAbstractItemModel.setModel...getModel or > has it a different nam

Re: [PyQt] How to catch a mouse event and a key event at the same time

2009-04-14 Thread Lukas Hetzenecker
Hello, try to use this: from PyQt4.QtCore import * from PyQt4.QtGui import * class Main(QWidget): def __init__(self, app): QWidget.__init__(self) self.app = app self.show() def mousePressEvent(self, event): if (app.keyboardModifiers() ==

[PyQt] [PyKDE] kioslave example?

2009-04-03 Thread Lukas Hetzenecker
Hello, i wanted to make a simple kioslave for the following disadvantage: I have to directorys /files/backuped /files/notbackuped And now i want to make a kioslave myfiles:// that displays a folder which consists of the content of both /files/ directories. Writing support for the slave isn't n

[PyQt] logging.Handler not working with QThreads

2009-02-25 Thread Lukas Hetzenecker
Hello, I created a QTextEdit where I wanted to display log messages. A logging.Handler should do this job. It worked with one thread well, but when I start a QThread the text on all widgets is removed and I get many errors in my konsole: X Error: RenderBadGlyphSet (invalid GlyphSet parameter) 1

[PyQt] animate move() of a QFrame

2009-02-22 Thread Lukas Hetzenecker
Hello, is it possible to animate the move() of a QFrame? Thanks, Lukas ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt