|
20 | 20 |
|
21 | 21 |
|
22 | 22 | <link rel="icon" href="../../assets/images/favicon.png"> |
23 | | - <meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.21"> |
| 23 | + <meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.22"> |
24 | 24 |
|
25 | 25 |
|
26 | 26 |
|
27 | 27 | <title>Architecture - PythonNative</title> |
28 | 28 |
|
29 | 29 |
|
30 | 30 |
|
31 | | - <link rel="stylesheet" href="../../assets/stylesheets/main.2a3383ac.min.css"> |
| 31 | + <link rel="stylesheet" href="../../assets/stylesheets/main.84d31ad4.min.css"> |
32 | 32 |
|
33 | 33 |
|
34 | 34 |
|
|
163 | 163 | <a href="https://github.com/pythonnative/pythonnative" title="Go to repository" class="md-source" data-md-component="source"> |
164 | 164 | <div class="md-source__icon md-icon"> |
165 | 165 |
|
166 | | - <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc.--><path d="M439.6 236.1 244 40.5c-5.4-5.5-12.8-8.5-20.4-8.5s-15 3-20.4 8.4L162.5 81l51.5 51.5c27.1-9.1 52.7 16.8 43.4 43.7l49.7 49.7c34.2-11.8 61.2 31 35.5 56.7-26.5 26.5-70.2-2.9-56-37.3L240.3 199v121.9c25.3 12.5 22.3 41.8 9.1 55-6.4 6.4-15.2 10.1-24.3 10.1s-17.8-3.6-24.3-10.1c-17.6-17.6-11.1-46.9 11.2-56v-123c-20.8-8.5-24.6-30.7-18.6-45L142.6 101 8.5 235.1C3 240.6 0 247.9 0 255.5s3 15 8.5 20.4l195.6 195.7c5.4 5.4 12.7 8.4 20.4 8.4s15-3 20.4-8.4l194.7-194.7c5.4-5.4 8.4-12.8 8.4-20.4s-3-15-8.4-20.4"/></svg> |
| 166 | + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc.--><path d="M439.6 236.1 244 40.5c-5.4-5.5-12.8-8.5-20.4-8.5s-15 3-20.4 8.4L162.5 81l51.5 51.5c27.1-9.1 52.7 16.8 43.4 43.7l49.7 49.7c34.2-11.8 61.2 31 35.5 56.7-26.5 26.5-70.2-2.9-56-37.3L240.3 199v121.9c25.3 12.5 22.3 41.8 9.1 55-6.4 6.4-15.2 10.1-24.3 10.1s-17.8-3.6-24.3-10.1c-17.6-17.6-11.1-46.9 11.2-56v-123c-20.8-8.5-24.6-30.7-18.6-45L142.6 101 8.5 235.1C3 240.6 0 247.9 0 255.5s3 15 8.5 20.4l195.6 195.7c5.4 5.4 12.7 8.4 20.4 8.4s15-3 20.4-8.4l194.7-194.7c5.4-5.4 8.4-12.8 8.4-20.4s-3-15-8.4-20.4"/></svg> |
167 | 167 | </div> |
168 | 168 | <div class="md-source__repository"> |
169 | 169 | GitHub |
|
209 | 209 | <a href="https://github.com/pythonnative/pythonnative" title="Go to repository" class="md-source" data-md-component="source"> |
210 | 210 | <div class="md-source__icon md-icon"> |
211 | 211 |
|
212 | | - <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.0.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc.--><path d="M439.6 236.1 244 40.5c-5.4-5.5-12.8-8.5-20.4-8.5s-15 3-20.4 8.4L162.5 81l51.5 51.5c27.1-9.1 52.7 16.8 43.4 43.7l49.7 49.7c34.2-11.8 61.2 31 35.5 56.7-26.5 26.5-70.2-2.9-56-37.3L240.3 199v121.9c25.3 12.5 22.3 41.8 9.1 55-6.4 6.4-15.2 10.1-24.3 10.1s-17.8-3.6-24.3-10.1c-17.6-17.6-11.1-46.9 11.2-56v-123c-20.8-8.5-24.6-30.7-18.6-45L142.6 101 8.5 235.1C3 240.6 0 247.9 0 255.5s3 15 8.5 20.4l195.6 195.7c5.4 5.4 12.7 8.4 20.4 8.4s15-3 20.4-8.4l194.7-194.7c5.4-5.4 8.4-12.8 8.4-20.4s-3-15-8.4-20.4"/></svg> |
| 212 | + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2025 Fonticons, Inc.--><path d="M439.6 236.1 244 40.5c-5.4-5.5-12.8-8.5-20.4-8.5s-15 3-20.4 8.4L162.5 81l51.5 51.5c27.1-9.1 52.7 16.8 43.4 43.7l49.7 49.7c34.2-11.8 61.2 31 35.5 56.7-26.5 26.5-70.2-2.9-56-37.3L240.3 199v121.9c25.3 12.5 22.3 41.8 9.1 55-6.4 6.4-15.2 10.1-24.3 10.1s-17.8-3.6-24.3-10.1c-17.6-17.6-11.1-46.9 11.2-56v-123c-20.8-8.5-24.6-30.7-18.6-45L142.6 101 8.5 235.1C3 240.6 0 247.9 0 255.5s3 15 8.5 20.4l195.6 195.7c5.4 5.4 12.7 8.4 20.4 8.4s15-3 20.4-8.4l194.7-194.7c5.4-5.4 8.4-12.8 8.4-20.4s-3-15-8.4-20.4"/></svg> |
213 | 213 | </div> |
214 | 214 | <div class="md-source__repository"> |
215 | 215 | GitHub |
|
642 | 642 |
|
643 | 643 |
|
644 | 644 |
|
| 645 | + |
| 646 | + |
| 647 | + |
| 648 | + |
| 649 | + |
| 650 | + |
| 651 | + <li class="md-nav__item"> |
| 652 | + <a href="../../guides/navigation/" class="md-nav__link"> |
| 653 | + |
| 654 | + |
| 655 | + |
| 656 | + <span class="md-ellipsis"> |
| 657 | + Navigation |
| 658 | + |
| 659 | + </span> |
| 660 | + |
| 661 | + |
| 662 | + </a> |
| 663 | + </li> |
| 664 | + |
| 665 | + |
| 666 | + |
| 667 | + |
645 | 668 | </ul> |
646 | 669 | </nav> |
647 | 670 |
|
@@ -934,7 +957,7 @@ <h2 id="comparison">Comparison<a class="headerlink" href="#comparison" title="Pe |
934 | 957 | </ul> |
935 | 958 | <h2 id="ios-flow-rubicon-objc">iOS flow (Rubicon-ObjC)<a class="headerlink" href="#ios-flow-rubicon-objc" title="Permanent link">¶</a></h2> |
936 | 959 | <ul> |
937 | | -<li>The iOS template (Swift + PythonKit) boots Python and calls your bootstrap(native_instance) with the UIViewController pointer.</li> |
| 960 | +<li>The iOS template (Swift + PythonKit) boots Python and instantiates your <code>MainPage</code> with the current <code>UIViewController</code> pointer.</li> |
938 | 961 | <li>In Python, Rubicon wraps the pointer; you then interact with UIKit classes directly.</li> |
939 | 962 | </ul> |
940 | 963 | <div class="codehilite"><pre><span></span><code><span class="kn">from</span><span class="w"> </span><span class="nn">rubicon.objc</span><span class="w"> </span><span class="kn">import</span> <span class="n">ObjCClass</span><span class="p">,</span> <span class="n">ObjCInstance</span> |
|
0 commit comments