def _create_content(self):
     """ """
     content = self._create_scrollable_content()
     contentLayout = QtWidgets.QVBoxLayout()
     content.setLayout(contentLayout)
     # Add activity name at top.
     self._activityheader = app_framework.HeaderQLabel()
     self._activityheader.setText('<h2>' + self.objectName() + '</h2>')
     contentLayout.addWidget(self._activityheader)
     # Add content to the activity.
     contentLayout.addWidget(self._content_tabs())
Esempio n. 2
0
 def _create_content(self):
     """ """
     content = self._create_scrollable_content()
     layout = QtWidgets.QVBoxLayout()
     # Add activity name at top.
     self._activityheader = app_framework.HeaderQLabel()
     self._activityheader.setText('<h2>' + self.objectName() + '</h2>')
     layout.addWidget(self._activityheader)
     # Add tabs.
     tabWidget = QtWidgets.QTabWidget()
     tabWidget.addTab(self._content_export(), 'Export')
     tabWidget.addTab(self._content_more(), '(More)')
     tabWidget.addTab(self._content_help(), '(Help)')
     #
     layout.addWidget(tabWidget)
     content.setLayout(layout)