On 4/30/2020 at 12:28 PM, ahoeben said:Can you show more of your code? It seems you are trying to access the global container stack before Cura is ready for you to access it.
Yes, sure
from PyQt5.QtWidgets import QFileDialog, QMessageBox
import os.path
import sys
from UM.Extension import Extension
from UM.Application import Application
from UM.Logger import Logger
from UM.Message import Message
from UM.i18n import i18nCatalog
catalog = i18nCatalog("cura")
class SettingsPDFReportPlugin(Extension):
def __init__(self):
super().__init__()
Logger.log("d", "Initializing the Settings PDF Report Plugin.")
self._application = Application.getInstance()
self._machine_manager = self._application.getMachineManager()
self._global_stack = self._machine_manager.activeMachine
Recommended Posts
ahoeben 2,016
Can you show more of your code? It seems you are trying to access the global container stack before Cura is ready for you to access it.
Link to post
Share on other sites