[PyQt] QTextEdit 80 chars wide

2011-01-27 Thread Mads Ipsen
Hi, Suppose I have a QTextEdit set up with a monospace font. How do I make the text edit field exactly 80 chars wide? E.g. similar to a command prompt window. Best regards, Mads -- +--+ | Mads Ipsen, Scientific developer

Re: [PyQt] Custom Widget

2011-01-27 Thread Phil Thompson
On Thu, 27 Jan 2011 04:03:48 +0100, Hans-Peter Jansen h...@urpla.net wrote: On Wednesday 26 January 2011, 14:35:35 ferde...@gmail.com wrote: Thanks again Pete I think i will do my own custom widget from scratch following a book i have and then use the link you gave me to integrate it to the

Re: [PyQt] Typedefs and SIP

2011-01-27 Thread Phil Thompson
On Wed, 26 Jan 2011 10:18:55 -0800, Nate Reid gnat...@hotmail.com wrote: If I'm using a typedef with a MappedType, and a container that's a MappedType, it seems like I have to use a #define to tell SIP that the specific typedef is the same as the MappedType. E.g. I've wrapped std::string

[PyQt] PyQwt and SIP-4.12.1

2011-01-27 Thread Gerard Vermeulen
Hi, The following works with sip-4.12 (python compiled in my home directory): Python 2.6.6 (r266:84292, Jan 8 2011, 16:35:06) [GCC 4.4.4] on linux2 Type help, copyright, credits or license for more information. import PyQt4.Qwt5 as qwt import sip sip.SIP_VERSION_STR '4.12'

Re: [PyQt] QWebView, Google Maps issue on Windows.

2011-01-27 Thread Thomas Mansencal
Apparently it's not the fact of PyQt, I just did a quick example in C++ and it's the same. I opened a ticket on Qt tracker : http://bugreports.qt.nokia.com/browse/QTBUG-16970 Here is the C++ snippet : #include QtGui/QApplication #include QtWebKit int main(int argc, char *argv[]) {

[PyQt] memory leak on a Mac

2011-01-27 Thread Danny Shevitz
Howdy, I have an app that works just fine on the one click windows distro. I just tried to run the same app on a Mac for the first time. I am nobody's Mac expert, but I did manage to get the latest PyQt4, Sip, QScintilla working. When I run my app on the Mac, I get the following: macshev:elm3

Re: [PyQt] memory leak on a Mac

2011-01-27 Thread Arne Schmitz
Am 27.01.2011 um 18:12 schrieb Danny Shevitz: Any PyQt application generates the same message. If I run something from the samples directory, I get the same memory leak, so it is nothing in my code. I don't have those problems. How did you install PyQt? I use MacPorts (using Python 2.7).

Re: [PyQt] memory leak on a Mac

2011-01-27 Thread Danny Shevitz
Arne Schmitz arne.schmitz at gmx.net writes: Am 27.01.2011 um 18:12 schrieb Danny Shevitz: Any PyQt application generates the same message. If I run something from the samples directory, I get the same memory leak, so it is nothing in my code. I don't have those problems. How did you

[PyQt] Previous PyQt Releases

2011-01-27 Thread Thomas Mansencal
Hi, Is there a way to access previous PyQt releases somewhere ? I'm searching for that release : PyQt-Py2.6-gpl-4.7.3-2.exe but for python 2.7 ( if it exists at all ). Thanks, Thomas ___ PyQt mailing listPyQt@riverbankcomputing.com

[PyQt] QProgressBar : CPU usage on Snow Leopard 10.6.6

2011-01-27 Thread Capa/Aurelien
Dear all, I am writing an application (music player) using a progress bar in order to display the timeline of a song. My problem is that the QProgressBar object is a bit burning my CPU : - 1% of usage to display an empty progress bar. - 6% to display a progress bar with a value. Here is

[PyQt] Capture drop in a QTableWidget

2011-01-27 Thread starglider develop
Hi, I'm new to PyQt and I have a problem, search de google, PyQt docs, Mr. Summerfield's book, but was unable to find a way of sort it. I have a QListWidget and a QTableWidget all have the drag and drop enable, I use this example: http://zetcode.com/tutorials/pyqt4/dragdrop/ it works fine