Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gsec = getguisections('r.slope.aspect') # this return a list
- for i in gsec:
- tab = QtWidgets.QWidget()
- tab.setObjectName(i)
- fileopen = GisPrompt(tab)
- #fileopen.treeviewbutton.clicked.connect(fileopen.showhidetree) # I commented it becouse doe not trig the hide/show action
- fileopen.treeviewbutton.clicked.connect(self.showhidetree) # that's a tes .. to see if at least i can connect the button to something else in the main ui class
- fileopen.setObjectName("fileopen_%s" % i)
- self.w.commandtab.addTab(tab, i)
- self.w.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement