eric6/MicroPython/CircuitPythonDevices.py

changeset 8218
7c09585bd960
parent 8117
aaa5e0eacd4e
equal deleted inserted replaced
8217:385f60c94548 8218:7c09585bd960
36 @param deviceType device type assigned to this device interface 36 @param deviceType device type assigned to this device interface
37 @type str 37 @type str
38 @param parent reference to the parent object 38 @param parent reference to the parent object
39 @type QObject 39 @type QObject
40 """ 40 """
41 super(CircuitPythonDevice, self).__init__( 41 super().__init__(
42 microPythonWidget, deviceType, parent) 42 microPythonWidget, deviceType, parent)
43 43
44 self.__workspace = self.__findWorkspace() 44 self.__workspace = self.__findWorkspace()
45 45
46 self.__nonUF2devices = { 46 self.__nonUF2devices = {
49 49
50 def setButtons(self): 50 def setButtons(self):
51 """ 51 """
52 Public method to enable the supported action buttons. 52 Public method to enable the supported action buttons.
53 """ 53 """
54 super(CircuitPythonDevice, self).setButtons() 54 super().setButtons()
55 self.microPython.setActionButtons( 55 self.microPython.setActionButtons(
56 run=True, repl=True, files=True, chart=HAS_QTCHART) 56 run=True, repl=True, files=True, chart=HAS_QTCHART)
57 57
58 if self.__deviceVolumeMounted(): 58 if self.__deviceVolumeMounted():
59 self.microPython.setActionButtons(open=True, save=True) 59 self.microPython.setActionButtons(open=True, save=True)
195 " available. Such a volume was not found. In" 195 " available. Such a volume was not found. In"
196 " place editing will not be available." 196 " place editing will not be available."
197 ) 197 )
198 ) 198 )
199 199
200 return super(CircuitPythonDevice, self).getWorkspace() 200 return super().getWorkspace()
201 201
202 def addDeviceMenuEntries(self, menu): 202 def addDeviceMenuEntries(self, menu):
203 """ 203 """
204 Public method to add device specific entries to the given menu. 204 Public method to add device specific entries to the given menu.
205 205

eric ide

mercurial