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

adonay at k-demar.org adonay at k-demar.org
Tue Jun 17 19:53:07 BST 2008


Hi, I'm programing a little app which needs to open more than one time, the
same window.
Now I make an import and instance the window like this.


from new_window import *

a = new_window
a.show()
b = new_window
b.show()
c = new_window
c.show()


This only shows ONE window. and if I print a b c  only shows the same
instance:
<new_window.new_window object at 0xb556bdac>

Can I show three times the same window?

Tnx,
Adonay

--------------------------------------------------------------------
myhosting.com - Premium Microsoft® Windows® and Linux web and application
hosting - http://link.myhosting.com/myhosting





More information about the PyQt mailing list