even i had the same problem and found no solution, as there is not concept of copy constructor in python. if u come across some answer for it than plz let me know.
Darryl Wallace wrote: > > Quick question and i think I already know the answer, but I'll throw it > out > there. > > Is it possible to display the same QWidget in different places? > > -- > Quick background.. I'm making some plots using PyQwt. These plots are > connected to a "play/pause" tool bar with position slider to update the > plot > contents. I've changed my program flow such that one main toolbar to > control the plots is not sufficient as they may now have data from > different > locations. > > My idea was to create one toolbar to control each plot from the same group > of plots, except I wanted to display the toolbar in each plot subwindow. > This way I could avoid having to make multiple connections all going back > to the same place. > > Now this means displaying the same widget in multiple locations on the > screen at once (one within each plot child window). Is it possible to > display the same widget in different places? > > I've tried just adding the same object to a layout and it shows up only in > one of the windows. I've also tried using a graphicsview/scene > combination > where I add the widget to the scene, but this yields an error reported to > the console by QGraphicsProxyWidget saying that the widget was already > added. > -- > Any help would be much appreciated if it's possible. But I think the > answer > is that the same widget cannot be shown in more than one location. > > Thanks, > Darryl > > _______________________________________________ > PyQt mailing list PyQt@riverbankcomputing.com > http://www.riverbankcomputing.com/mailman/listinfo/pyqt > -- View this message in context: http://old.nabble.com/Same-widget-in-multiple-locations-tp27183546p27221922.html Sent from the PyQt mailing list archive at Nabble.com. _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt