[PyQt] QScintilla font is tiny on mac os x 10.6

2011-04-21 Thread Danny Shevitz
Howdy, I'm using QSci in my PyQt4 app and the font looks normal on a windows box. The same app on a mac os x 10.6 box is almost unreadably small. It is also tiny in the Eric IDE. Is there a systemwide setting I can change for the QSci editor? I would prefer to not have to check the platform and

[PyQt] installation problem on mac os x 10.6.6

2011-03-18 Thread Danny Shevitz
Howdy, I'm trying to install pyqt on a mac and have run into a problem. I'm running Python 3.2 64 bit, Mac OS X 10.6.6. Python 3.2 (r32:88452, Feb 20 2011, 11:12:31) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin I installed Qt from the installer, 4.7.2. I installed SIP form source no problem.

Re: [PyQt] memory leak on a Mac

2011-01-28 Thread Danny Shevitz
I don't have those problems. How did you install PyQt? I use MacPorts (using Python 2.7). Arne, thanks for the MacPorts tip. I have installed pyqt through MacPorts and it works just fine. No memory leak anymore. After figuring out how to get through our firewall and making the MacPorts python

[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 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] automatic resizing code sample

2011-01-12 Thread Danny Shevitz
Howdy, In my past wanderings, I remember seeing a demo example of (I believe) a QTextEdit that automatically resized itself vertically to fit it's contents. I can no longer find this example. Does anyone remember this example and could please provide a link? thanks, Danny

Re: [PyQt] advice needed for dragging icons off a toolbar

2010-09-18 Thread Danny Shevitz
You're going to subclass QToolButton, override mouse{Press,Move}Event and add them to the toolbar with QToolBar.addWidget(). It might be sufficient to connect the pressed signal to a startDrag method in your main window. Check the deleayedencoding example, I've send the other day. Thanks

[PyQt] possible to change the central widget in a QMainWindow

2010-08-11 Thread Danny Shevitz
Howdy, My app is a QMainWindow subclass with a central widget that is a bunch of radio buttons. The radio button part is constructed on the fly from a template file. I would like the user to be able to change this central widget by reloading the template file used to construct it. I am

[PyQt] best practices for MDI app

2010-07-13 Thread Danny Shevitz
Howdy, I'm a newbie and struggling with developing an MDI app. The basic question is this: each of my documents looks and acts like a dialog. When I create my child class, should I subclass QDialog or QWidget? I am currently using QDialog and add a QDialogButtonBox at the bottom. This

[PyQt] alignment issue with radio buttons

2010-06-21 Thread Danny Shevitz
Howdy, I have a grid layout. The are text row and column headings. The grid interior is an array of radio button. Both the column headings and the radio buttons have alignment=Qt.AlignHCenter. The radio buttons do not align under the center of the column heading text. They are a little to

[PyQt] QToolBox question

2010-06-14 Thread Danny Shevitz
Howdy, I have been searching the archives and haven't found anything on QToolBox's that would help with the following question. I have a toolbox and want to allow several subwidgets to be displayed at the same time. The default implementation seems to maximize the contents of a single tool. Can

[PyQt] can't get findChild to work

2010-06-08 Thread Danny Shevitz
Howdy, Another newbie question here. I am trying to get findChild to work. The code I am trying is app=QtGui.QApplication.instance() print app.allWidgets() mdiArea=app.findChild(QtGui.QMdiArea) print in ElicitorPage, mdiArea = , mdiArea As can be seen, I am getting the global

[PyQt] minor bug in examples

2010-06-03 Thread Danny Shevitz
Howdy, I'm new to PyQt and found a minor bug in the mdi mainwindows sample. In lines 93 and 95 of mdi.pyw, QApplication is a member of the QtGui module, not QtCore as written. The code should read: QtGui.QApplication.setOverrideCursor(QtCore.Qt.WaitCursor) outstr self.toPlainText()