2626VIDS_PIDS_TO_AVOID_IN_GENERIC_BACKEND = set ()
2727
2828
29- class MicroPythonProxy (SubprocessProxy ):
29+ class QuecPythonProxy (SubprocessProxy ):
3030 def __init__ (self , clean ):
3131 self ._lib_dirs = []
3232 super ().__init__ (clean , running .get_front_interpreter_for_subprocess ())
@@ -53,7 +53,7 @@ def get_lib_dirs(self):
5353 return self ._lib_dirs
5454
5555 def _store_state_info (self , msg ):
56- super (MicroPythonProxy , self )._store_state_info (msg )
56+ super (QuecPythonProxy , self )._store_state_info (msg )
5757 if "lib_dirs" in msg :
5858 self ._lib_dirs = msg ["lib_dirs" ]
5959
@@ -84,7 +84,7 @@ def is_valid_configuration(cls, conf: Dict[str, Any]) -> bool:
8484 return True
8585
8686
87- class BareMetalMicroPythonProxy ( MicroPythonProxy ):
87+ class BareMetalQuecPythonProxy ( QuecPythonProxy ):
8888 def __init__ (self , clean ):
8989 self ._port = get_workbench ().get_option (self .backend_name + ".port" )
9090 self ._clean_start = clean
@@ -96,9 +96,9 @@ def get_target_executable(self) -> Optional[str]:
9696 return None
9797
9898 def get_pip_gui_class (self ):
99- from thonny .plugins .quecpython .backend .pip_gui import MicroPythonPipDialog
99+ from thonny .plugins .quecpython .backend .pip_gui import QuecPythonPipDialog
100100
101- return MicroPythonPipDialog
101+ return QuecPythonPipDialog
102102
103103 def destroy (self , for_restart : bool = False ):
104104 super ().destroy (for_restart = for_restart )
@@ -418,7 +418,7 @@ def run_script_in_terminal(self, script_path, args, interactive, keep_open):
418418 )
419419
420420
421- class BareMetalMicroPythonConfigPage (BackendDetailsConfigPage ):
421+ class BareMetalQuecPythonConfigPage (BackendDetailsConfigPage ):
422422 backend_name = None # Will be overwritten on Workbench.add_backend
423423
424424 def __init__ (self , master ):
@@ -664,7 +664,7 @@ def allow_webrepl(self):
664664 return False
665665
666666
667- class GenericBareMetalMicroPythonProxy ( BareMetalMicroPythonProxy ):
667+ class GenericBareMetalQuecPythonProxy ( BareMetalQuecPythonProxy ):
668668 @classmethod
669669 def get_known_usb_vids_pids (cls ):
670670 """Return set of pairs of USB device (VID, PID)"""
@@ -680,13 +680,13 @@ def get_vids_pids_to_avoid(self):
680680 return VIDS_PIDS_TO_AVOID_IN_GENERIC_BACKEND
681681
682682
683- class GenericBareMetalMicroPythonConfigPage ( BareMetalMicroPythonConfigPage ):
683+ class GenericBareMetalQuecPythonConfigPage ( BareMetalQuecPythonConfigPage ):
684684 @property
685685 def allow_webrepl (self ):
686686 return False
687687
688688
689- class LocalMicroPythonProxy ( MicroPythonProxy ):
689+ class LocalQuecPythonProxy ( QuecPythonProxy ):
690690 def __init__ (self , clean ):
691691 exe = get_workbench ().get_option ("LocalMicroPython.executable" )
692692 if os .path .isabs (exe ):
@@ -799,7 +799,7 @@ def is_valid_configuration(cls, conf: Dict[str, Any]) -> bool:
799799 return os .path .exists (executable ) or shutil .which (executable )
800800
801801
802- class LocalMicroPythonConfigPage (BackendDetailsConfigPage ):
802+ class LocalQuecPythonConfigPage (BackendDetailsConfigPage ):
803803 backend_name = None # Will be overwritten on Workbench.add_backend
804804
805805 def __init__ (self , master ):
@@ -820,7 +820,7 @@ def should_restart(self):
820820 return self ._changed
821821
822822
823- class SshMicroPythonProxy ( MicroPythonProxy ):
823+ class SshQuecPythonProxy ( QuecPythonProxy ):
824824 def __init__ (self , clean ):
825825 self ._host = get_workbench ().get_option (f"{ self .backend_name } .host" )
826826 self ._user = get_workbench ().get_option (f"{ self .backend_name } .user" )
@@ -959,7 +959,7 @@ def is_valid_configuration(cls, conf: Dict[str, Any]) -> bool:
959959 return True
960960
961961
962- class SshMicroPythonConfigPage (BaseSshProxyConfigPage ):
962+ class SshQuecPythonConfigPage (BaseSshProxyConfigPage ):
963963 pass
964964
965965
0 commit comments