daemon/gui/grpc: added support to retrieve rendered config service files, added support for grpc to access this, and update gui to leverage this call to provide a rendered view of files based on the current scenario, also allows editing the rendered output to use as the input when running the scenario
This commit is contained in:
parent
443c0e708f
commit
bd6f789cef
8 changed files with 171 additions and 46 deletions
|
@ -257,6 +257,13 @@ class CodeText(ttk.Frame):
|
|||
yscrollbar.grid(row=0, column=1, sticky=tk.NS)
|
||||
self.text.configure(yscrollcommand=yscrollbar.set)
|
||||
|
||||
def get_text(self) -> str:
|
||||
return self.text.get(1.0, tk.END)
|
||||
|
||||
def set_text(self, text: str) -> None:
|
||||
self.text.delete(1.0, tk.END)
|
||||
self.text.insert(tk.END, text.rstrip())
|
||||
|
||||
|
||||
class Spinbox(ttk.Entry):
|
||||
def __init__(self, master: tk.BaseWidget = None, **kwargs: Any) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue