[PyQt] close tabs?

Baz Walter bazwal at ftml.net
Mon Aug 31 14:24:03 BST 2009


patx at patx.me wrote:
> I have the code http://codepad.org/bAV10oAr. I can not figure out how to
> close the tabs. Can someone tell me what I need to do, I have the tab
> indexes in a list. Thanks, PATX.

tabs are removed by index.

i don't think you will need a separate list of tabs - the tabwidget 
already has its own indexed list.

here's an edited version of your code: http://codepad.org/Pqf9WULo

i also made a few other changes to get things working properly (hope you 
don't mind).

regards
baz walter


More information about the PyQt mailing list