MCPcopy Create free account
hub / github.com/Apress/modern-pyqt / setupMenu

Method setupMenu

ch03_data_visualization/data_visualization.py:148–155  ·  view source on GitHub ↗

Create a simple menu to manage the dock widget.

(self)

Source from the content-addressed store, hash-verified

146 self.setCentralWidget(self.chart_view)
147
148 def setupMenu(self):
149 """Create a simple menu to manage the dock widget."""
150 menu_bar = self.menuBar()
151 menu_bar.setNativeMenuBar(False)
152
153 # Create view menu and add actions
154 view_menu = menu_bar.addMenu('View')
155 view_menu.addAction(self.toggle_dock_tools_act)
156
157 def setupToolsDockWidget(self):
158 """Set up the dock widget that displays different tools and themes for

Callers 1

initializeUIMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected