Exemplo n.º 1
0
 def __init__(self, master):
     TypeSpecificInspector.__init__(self, master)
     TextFrame.__init__(self, master, read_only=True)
     self.cache = {}  # stores file contents for handle id-s
     self.config(borderwidth=1)
     self.text.configure(background="white")
     self.text.tag_configure("read", foreground="lightgray")
Exemplo n.º 2
0
 def __init__(self, master):
     ContentInspector.__init__(self, master)
     TextFrame.__init__(self,
                        master,
                        read_only=True,
                        horizontal_scrollbar=False,
                        font="TkDefaultFont")
Exemplo n.º 3
0
 def __init__(self, master):
     TextFrame.__init__(self, master)
     # self.text.config(wrap=tk.WORD)
     get_workbench().bind("ShowView", self._log_event, True)
     get_workbench().bind("HideView", self._log_event, True)
     get_workbench().bind("ToplevelReponse", self._log_event, True)
     get_workbench().bind("DebuggerResponse", self._log_event, True)
     get_workbench().bind("ProgramOutput", self._log_event, True)
     get_workbench().bind("InputRequest", self._log_event, True)
Exemplo n.º 4
0
    def __init__(self, master):
        TextFrame.__init__(
            self,
            master,
            text_class=rst_utils.RstText,
            vertical_scrollbar_style=scrollbar_style("Vertical"),
            horizontal_scrollbar_style=scrollbar_style("Horizontal"),
            horizontal_scrollbar_class=ui_utils.AutoScrollbar,
            borderwidth=0,
            wrap="word",
            relief="flat",
            padx=20,
            pady=0,
            read_only=True,
        )

        self.load_rst_file("index.rst")
Exemplo n.º 5
0
 def __init__(self, master):
     TextFrame.__init__(
         self,
         master,
         text_class=rst_utils.RstText,
         vertical_scrollbar_style=scrollbar_style("Vertical"),
         horizontal_scrollbar_style=scrollbar_style("Horizontal"),
         horizontal_scrollbar_class=ui_utils.AutoScrollbar,
         borderwidth=0,
         wrap="word",
         relief="flat",
         padx=20,
         pady=0,
         read_only=True,
     )
     self.language_dir = os.path.join(
         os.path.dirname(thonny.__file__),
         "locale",
         get_workbench().get_option("general.language"),
         "HELP_CONTENT",
     )
     self.load_rst_file("index.rst")
Exemplo n.º 6
0
 def __init__(self, master):
     TextFrame.__init__(
         self,
         master,
         text_class=rst_utils.RstText,
         vertical_scrollbar_style=scrollbar_style("Vertical"),
         horizontal_scrollbar_style=scrollbar_style("Horizontal"),
         horizontal_scrollbar_class=ui_utils.AutoScrollbar,
         borderwidth=0,
         wrap="word",
         relief="flat",
         padx=20,
         pady=0,
         read_only=True,
     )
     # retrieve the directory of the preferred language
     # for help's .rst files ; this directory is ./ by default
     self.languageDir = "."
     self._configuration_manager = try_load_configuration(
         CONFIGURATION_FILE_NAME)
     self.languageDir = self._configuration_manager.get_option(
         "general.language", ".")
     self.load_rst_file("index.rst")
Exemplo n.º 7
0
 def __init__(self, master):
     TypeSpecificInspector.__init__(self, master)
     TextFrame.__init__(self, master, read_only=True)
     self.config(borderwidth=1)
     self.text.configure(background="white")
Exemplo n.º 8
0
 def __init__(self, master):
     ContentInspector.__init__(self, master)
     TextFrame.__init__(self, master, read_only=True)
Exemplo n.º 9
0
 def __init__(self, master):
     ContentInspector.__init__(self, master)
     TextFrame.__init__(self, master, read_only=True)
     self.text.configure(background="white")