Re: [PyQt] Moving button to the right side edge of a QToolBar

2009-05-11 Thread Chris M
Try; spacer = QWidget() spacer.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding) toolBar.addWidget(spacer) # Then your button to be right-aligned Taken from http://www.ffuts.org/blog/right-aligning-a-button-in-a-qtoolbar/ 2009/5/11 Peter Georges : > I have a QToolBar in my application

Re: [PyQt] QTreeWidget and fixed column widths on window resize

2008-07-31 Thread Chris M
Not sure if there is a 'cleaner' solution but overriding the event is fairly simple, for example; class MyTreeWidget(QTreeWidget): def __init__(self, parent = None): super(MyTreeWidget, self).__init__(parent) def resizeEvent(self, event): width = event.size().width()

[PyQt] QDateEdit With DataMapper - No Tab traversing?

2008-06-30 Thread Chris M
Not sure if this is a qt, pyqt (or something in my os environment) problem, but... I have a QDateEdit widget which is mapped to a database date field. The issue I have is ... I can tab into the widget, ie into the 'dd' of 'dd/MM/' but cannot tab onto the 'MM' and from MM cannot tab to ''.

Re: [PyQt] RE: Can I create more than one instance of a class?

2008-06-19 Thread Chris M
Adonay, Glad to hear you have solved the issue :-D The problem you give of the window disappearing or not appearing at all is because the variable 'other' (or a,b,c) goes out of scope when the _init_ method returns. You need to keep a reference to the window object (which your new code does by us

Re: [PyQt] Modal Dialogs? Basic howto help please.

2008-06-19 Thread Chris M
ly Im asking for a sanity > check :) > >Regards > >Lee -Original Message- From: Chris M > Lee, I'm probably missing your point, but a modal dialog just blocks > access to the other windows/dialogs in your application until it > exits. With no other windows I don