Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. gsec = getguisections('r.slope.aspect') # this return a list
  2. for i in gsec:
  3. tab = QtWidgets.QWidget()
  4. tab.setObjectName(i)
  5. fileopen = GisPrompt(tab)
  6. #fileopen.treeviewbutton.clicked.connect(fileopen.showhidetree) # I commented it becouse doe not trig the hide/show action
  7. 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
  8. fileopen.setObjectName("fileopen_%s" % i)
  9. self.w.commandtab.addTab(tab, i)
  10. self.w.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement