Main.py: Difference between revisions

From Chrysalis Archive
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 1: Line 1:
{{menuPromptEngineerCode}}
{{menuPromptEngineerCode}}
<pre style="width:880px; padding:10px; color:lime; background-color:#302; margin:0 auto;">
<pre style="width:880px; padding:10px; color:lime; background-color:#302; margin:0 auto;">
##  main.py 
##
##  This module sets up the main Tkinter window and creates an instance of the PromptEngineerApp
##  class, which contains the core functionality of the application. The main loop is then started 
##  to beginprocessing user interactions.
import tkinter as tk
import tkinter as tk
from prompt_engineer import PromptEngineerApp
from prompt_engineer import PromptEngineerApp
Line 6: Line 13:
CONFIG_INI_FILE = "app.ini"
CONFIG_INI_FILE = "app.ini"


##  The main entry point of the application. This function creates the main Tkinter
##  window, instantiates the PromptEngineerApp class, and starts the main event loop.
def main():
def main():
     root = tk.Tk()
     root = tk.Tk()
Line 11: Line 20:
     root.mainloop()
     root.mainloop()


if __name__ == '__main__':
 
if __name__ == "__main__":
     main()
     main()


</pre>
</pre>

Latest revision as of 13:20, 15 May 2024

Shadow Agency ∞  Theory of a Personal KOS ☀  Structured-Key DataShadow  ☀  Shadow Agency Code ☀  AI Agency Workflow Schemes ☀  The Cognitive Mesh ☀  Interlocution Protocol

PromptEngineer Python Code Category
main.py ☀  prompt_engineer.py ☀  config_master.py ☀  README.md


##  main.py  
##
##  This module sets up the main Tkinter window and creates an instance of the PromptEngineerApp 
##  class, which contains the core functionality of the application. The main loop is then started  
##  to beginprocessing user interactions.

import tkinter as tk
from prompt_engineer import PromptEngineerApp

CONFIG_INI_FILE = "app.ini"

##  The main entry point of the application. This function creates the main Tkinter
##  window, instantiates the PromptEngineerApp class, and starts the main event loop.
def main():
    root = tk.Tk()
    app = PromptEngineerApp(root, CONFIG_INI_FILE)
    root.mainloop()


if __name__ == "__main__":
    main()