02020-01-21 stream: Cleanup

This commit is contained in:
Suzanne Soy 2021-01-21 23:46:46 +00:00
parent 62d4a1a9ae
commit 1d5042a295

View File

@ -1,8 +1,6 @@
import sys import sys
print("AAA")
import ExternalAppsList import ExternalAppsList
print("BBB")
myIcon = """ myIcon = """
/* XPM */ /* XPM */
@ -41,7 +39,6 @@ myIcon = """
"................"}; "................"};
""" """
print("CCC")
class XternalAppsWorkbench(Workbench): class XternalAppsWorkbench(Workbench):
"""Subclasses must implement the appName attribute""" """Subclasses must implement the appName attribute"""
global myIcon global myIcon
@ -83,17 +80,11 @@ class XternalAppsWorkbench(Workbench):
def GetClassName(self): def GetClassName(self):
return "Gui::PythonWorkbench" return "Gui::PythonWorkbench"
print("DDD")
def addAppWorkbench(appName): def addAppWorkbench(appName):
workbenchClass = type( workbenchClass = type(
"XternalApps" + appName + "Workbench", "XternalApps" + appName + "Workbench",
(XternalAppsWorkbench,), { 'appName': appName }) (XternalAppsWorkbench,), { 'appName': appName })
Gui.addWorkbench(workbenchClass()) Gui.addWorkbench(workbenchClass())
print("EEE")
print(repr(dir(ExternalAppsList)))
print(repr(ExternalAppsList.apps))
for app in ExternalAppsList.apps: for app in ExternalAppsList.apps:
print("FFF " + repr(app))
addAppWorkbench(app) addAppWorkbench(app)
print("GGG")