Re: [PyQt] Collapse/expand frame
On Thu, Aug 13, 2009 at 7:51 PM, Scott Ballardsc...@scottballard.net wrote: I'm really looking for a frame that has the collapse/expand ability built into it. See the image in the link. You can see the Texture Map submenu collapsed/expanded. Any thoughts? www.scottballard.net/collapsibleFrame.jpg I've done something similar, sans the arrow. I have a checkable QGroupBox, whose sole child is a QFrame with no borders. All the widgets I put into the QFrame. Then I connect the toggled(bool) signal of the group box to the frame's setShown(bool) slot. That way, the QFrame is hidden when the QGroupBox is un-checked. And you can do it all from the Qt Designer: less hand-written code, yay! Originally I meant to figure out how to customize the QGroupBox so that it has an arrow (like in the example you're referencing) and not a cross, but it's not high on the list. The check box works fine, IMO. Cheers, Håvard Many thanks! -Scott Hans-Peter Jansen wrote: Am Mittwoch, 12. August 2009 schrieb Scott Ballard: Does anyone know of a way to collapse/expand a frame or a group box that contains widgets in it? I don't see anything in the docs or Google about it, but it would seem like something common. Try .hide()/.show() resp. .setVisible(bool) Pete ___ PyQt mailing list p...@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt __ Information from ESET NOD32 Antivirus, version of virus signature database 4330 (20090812) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 4332 (20090813) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ PyQt mailing list p...@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt -- Håvard Gulldahl hav...@gulldahl.no Telefon: 9971 0615 http://lurtgjort.no/ ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] pdf print
Hi Nahuel, list, On Thu, Feb 26, 2009 at 10:41 PM, Nahuel Defossé nahueldefo...@yahoo.com.ar wrote: Hi I've created pdf output in a StringIO file which I'd like to print in my PyQt4 app. Should I save it and send it to the system default reader? or could I automate this task? Is it possible to pirnt the file directly from PyQt? Like Jim Bublitz, I'm using reportlab to generate pdf invoices. Instead of mucking around with printers and such I open the file in a pdf reader, using subprocess.call(). That way I also get a sort of print preview for free, and it works with the same code on linux and windows. I'm happy with that, although I did have some issues with file name encoding on windows. Hat tip: encode the command string with sys.getfilesystemencoding(), else it will blow up on windows. Take care, Håvard -- Håvard Gulldahl hav...@gulldahl.no ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] pyuic 4.4.2 missing support for QFormLayout?
On 7/14/08, Phil Thompson [EMAIL PROTECTED] wrote: On Thu, 10 Jul 2008 18:09:51 +0200, Håvard Gulldahl I'm running: $ pyuic4 --version: Python User Interface Compiler 4.4.2 for Qt version Unknown Qt widget: QFormLayout The current snapshot should be Ok. Phil Thanks, Phil! -- Håvard Gulldahl [EMAIL PROTECTED] ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] pyuic 4.4.2 missing support for QFormLayout?
Hello, all, I'm running: $ pyuic4 --version: Python User Interface Compiler 4.4.2 for Qt version 4.4.0 $ dpkg -l pyqt4-dev-tools: 4.4.2-0ubuntu2 and it borks out on the attached .ui file with the following error message: $ pyuic4 /tmp/test-formlayout.ui # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/tmp/test-formlayout.ui' # # Created: Thu Jul 10 16:29:00 2008 # by: PyQt4 UI code generator 4.4.2 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName(Dialog) Dialog.resize(269,125) self.gridLayout = QtGui.QGridLayout(Dialog) self.gridLayout.setObjectName(gridLayout) Unknown Qt widget: QFormLayout Is QFormLayout missing from pyuic, or is something wrong on my end? Thanks! -- Håvard Gulldahl [EMAIL PROTECTED] test-formlayout.ui Description: application/designer ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt