
November 7th, 2003, 10:30 PM
|
|
Contributing User
|
|
Join Date: Mar 2003
Posts: 325
Time spent in forums: 7 h 58 m 36 sec
Reputation Power: 11
|
|
|
Qt Question
Hi, I was wondering if anyone could help with this QT problem.
I have a screenshot to help explain at :
http://www.cse.unsw.edu.au/~elip/screenshot.jpg
Anyway, I want it so that when the "Add Customer" button is pressed the right frame displays a form to get the details of a new customer, then when "Remove customer" another form is displayed .. etc.
I tried making the form to add a customer in another widget and tried this code :
Code:
class formConnect(BaseGUI):
def __init__(self, parent=None):
BaseGUI.__init__(self, parent)
self.connect(self.btn_customersadd,SIGNAL('clicked()'),self.setAddCustomerForm)
def setAddCustomerForm(self):
### this is the widget which inherits QWidget that I'm
### trying to add to the frame I've put on the right side
### which I've called "self.Frame_customers_right"
self.Form_add_customer = Form_add_customer(self.Frame_customers_right)
customers_add_layout = QHBoxLayout(self.Form_add_customer)
customers_add_layout.setSpacing(0)
customers_add_layout.setMargin(0)
Any help would be great
Thanx
|