<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to MAIN</title><link>https://sourceforge.net/p/pirobot/wiki/MAIN/</link><description>Recent changes to MAIN</description><atom:link href="https://sourceforge.net/p/pirobot/wiki/MAIN/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 28 May 2024 17:52:44 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pirobot/wiki/MAIN/feed" rel="self" type="application/rss+xml"/><item><title>MAIN modified by Benedict Jäggi</title><link>https://sourceforge.net/p/pirobot/wiki/MAIN/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v9
+++ v10
@@ -1,5 +1,13 @@
 #MAIN.py
 Back to [Home]
+
+There is a new way to load Apps DYNAMICALLY (from a json file right now.)
+Look at the [NEW_MAIN_EXAMPLE] for that.
+
+You can do it the old way, too.
+
+---------
+All below (even the link at the end) belongs to the old way of doing it.

 The main script which you start with python.

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benedict Jäggi</dc:creator><pubDate>Tue, 28 May 2024 17:52:44 -0000</pubDate><guid>https://sourceforge.nete6b3c3c0f65d94c3fd694232ca3858b793349b57</guid></item><item><title>MAIN modified by Benedict Jäggi</title><link>https://sourceforge.net/p/pirobot/wiki/MAIN/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v8
+++ v9
@@ -11,6 +11,8 @@
 # ...
 # Import your Apps here and register them:
 import importedApp
+# Do that at the end of your Application File with its file name as name.
+# It's just here for reference.
 APP_BASE.registerApplication("importedAppName", importedApp.App())
 # ...
 # Then set the current running application:
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benedict Jäggi</dc:creator><pubDate>Wed, 20 Mar 2024 03:12:03 -0000</pubDate><guid>https://sourceforge.net6b37ea6cf3e083963673e0007546a02e73db353b</guid></item><item><title>MAIN modified by Benedict Jäggi</title><link>https://sourceforge.net/p/pirobot/wiki/MAIN/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -6,13 +6,13 @@

 ##Simple example:
 If you want a more detailed example, view the [Complex Main Example]
-Import your Apps here and register them:
 ~~~
 import APP_BASE # this one is mandatory
 # ...
+# Import your Apps here and register them:
 import importedApp
 APP_BASE.registerApplication("importedAppName", importedApp.App())
-
+# ...
 # Then set the current running application:
 APP_BASE.setCurrentApp("importedAppName")`

&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benedict Jäggi</dc:creator><pubDate>Thu, 07 Mar 2024 11:20:17 -0000</pubDate><guid>https://sourceforge.net4906c1bb3230fd5d22a10e5772881dc6f1534495</guid></item><item><title>MAIN modified by Benedict Jäggi</title><link>https://sourceforge.net/p/pirobot/wiki/MAIN/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -28,3 +28,7 @@

 APP_BASE.quit()
 ~~~
+View the  [Complex Main Example] for a more complex app infrastructure.
+If you know how MAIN.py works now, learn how to create one of these shiny Apps for yourself with the [APP_TEMPLATE].
+
+Or go back [Home]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benedict Jäggi</dc:creator><pubDate>Thu, 07 Mar 2024 11:18:36 -0000</pubDate><guid>https://sourceforge.netf5831de852bae9887f6668df1bbc68143a3f6987</guid></item><item><title>MAIN modified by Benedict Jäggi</title><link>https://sourceforge.net/p/pirobot/wiki/MAIN/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -1,4 +1,6 @@
 #MAIN.py
+Back to [Home]
+
 The main script which you start with python.


&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benedict Jäggi</dc:creator><pubDate>Thu, 07 Mar 2024 10:55:55 -0000</pubDate><guid>https://sourceforge.net5247ecb9207e990db5c8ec405078b61f196436ad</guid></item><item><title>MAIN modified by Benedict Jäggi</title><link>https://sourceforge.net/p/pirobot/wiki/MAIN/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -1,8 +1,9 @@
 #MAIN.py
 The main script which you start with python.

-##Example:

+##Simple example:
+If you want a more detailed example, view the [Complex Main Example]
 Import your Apps here and register them:
 ~~~
 import APP_BASE # this one is mandatory
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benedict Jäggi</dc:creator><pubDate>Thu, 07 Mar 2024 10:09:40 -0000</pubDate><guid>https://sourceforge.net9961a126f8f381191d6be0750ccbc42b54d94afc</guid></item><item><title>MAIN modified by Benedict Jäggi</title><link>https://sourceforge.net/p/pirobot/wiki/MAIN/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -17,8 +17,7 @@
 # This one can be ommited if you just use one app.
 APP_BASE.underlyingApp = "importedAppName"`

-
-Finally, initialize the system and run it:
+# Finally, initialize the system and run it:
 APP_BASE.initialize()
 running = True
 while running:
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benedict Jäggi</dc:creator><pubDate>Thu, 07 Mar 2024 10:06:17 -0000</pubDate><guid>https://sourceforge.net1e76e4a67149b2f6b6231be9895d76fa266e6899</guid></item><item><title>MAIN modified by Benedict Jäggi</title><link>https://sourceforge.net/p/pirobot/wiki/MAIN/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -1,24 +1,24 @@
 #MAIN.py
 The main script which you start with python.

+##Example:
+
 Import your Apps here and register them:
-
 ~~~
-import APP_BASE
-...
+import APP_BASE # this one is mandatory
+# ...
 import importedApp
 APP_BASE.registerApplication("importedAppName", importedApp.App())
-~~~

-Then set the current running application:
-`APP_BASE.setCurrentApp("importedAppName")`
+# Then set the current running application:
+APP_BASE.setCurrentApp("importedAppName")`

-And set the underlying ("system") App, which gets called when you "exit" another app:
-`APP_BASE.underlyingApp = "importedAppName"`
+# And set the underlying ("system") App, which gets  called when you "exit" another app:
+# This one can be ommited if you just use one app.
+APP_BASE.underlyingApp = "importedAppName"`


 Finally, initialize the system and run it:
-~~~
 APP_BASE.initialize()
 running = True
 while running:
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benedict Jäggi</dc:creator><pubDate>Thu, 07 Mar 2024 10:05:48 -0000</pubDate><guid>https://sourceforge.net29bc66fe6f6c6f635f41d38aeb9e3a71031b0984</guid></item><item><title>MAIN modified by Benedict Jäggi</title><link>https://sourceforge.net/p/pirobot/wiki/MAIN/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -24,5 +24,5 @@
 while running:
       running=APP_BASE.update()

- APP_BASE.quit()
+APP_BASE.quit()
 ~~~
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benedict Jäggi</dc:creator><pubDate>Thu, 07 Mar 2024 09:58:56 -0000</pubDate><guid>https://sourceforge.netc3900560e112420d01e8f5d7f2fbdc63930b1be6</guid></item><item><title>MAIN modified by Benedict Jäggi</title><link>https://sourceforge.net/p/pirobot/wiki/MAIN/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="mainpy"&gt;MAIN.py&lt;/h1&gt;
&lt;p&gt;The main script which you start with python.&lt;/p&gt;
&lt;p&gt;Import your Apps here and register them:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;APP_BASE&lt;/span&gt;
&lt;span class="o"&gt;...&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="nn"&gt;importedApp&lt;/span&gt;
&lt;span class="n"&gt;APP_BASE&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;registerApplication&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"importedAppName"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;importedApp&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;App&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Then set the current running application:&lt;br/&gt;
&lt;code&gt;APP_BASE.setCurrentApp("importedAppName")&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;And set the underlying ("system") App, which gets called when you "exit" another app:&lt;br/&gt;
&lt;code&gt;APP_BASE.underlyingApp = "importedAppName"&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Finally, initialize the system and run it:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;APP_BASE.initialize()
running = True
while running:
      running=APP_BASE.update()

 APP_BASE.quit()
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Benedict Jäggi</dc:creator><pubDate>Thu, 07 Mar 2024 09:58:05 -0000</pubDate><guid>https://sourceforge.netfffdea862285991e70a69f72fabaaf9ba9ccb502</guid></item></channel></rss>