[pyqt] How to copy the content of a QPopupMenu ?

2006-04-05 Thread kobayashi
Dear all, For a particuliar case, I need to copy all the items of an existing menu (including the separators and sub-menus) in a new empty one ... Does someone knows how to do that ? I've tried : item = menu_orig.findItem(item_id) menu_new.insertItem(item, item_id) but it fails with : TypeError:

Re: [pyqt] How to copy the content of a QPopupMenu ?

2006-04-05 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: Dear all, For a particuliar case, I need to copy all the items of an existing menu (including the separators and sub-menus) in a new empty one ... Does someone knows how to do that ? I've tried : item = menu_orig.findItem(item_id) menu_new.insertItem(item,