Main.py: Difference between revisions
Jump to navigation
Jump to search
Created page with "<pre style="width:600px; color:lime; background-color:#302;"> import tkinter as tk from prompt_engineer import PromptEngineerApp CONFIG_INI_FILE = "app.ini" def main(): root = tk.Tk() app = PromptEngineerApp(root, CONFIG_INI_FILE) root.mainloop() if __name__ == '__main__': main() </pre>" |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<pre style="width: | {{menuPromptEngineerCode}} | ||
<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 5: | 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 10: | Line 20: | ||
root.mainloop() | root.mainloop() | ||
if __name__ == | |||
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
## 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()