{"id":312848,"date":"2020-11-09T21:00:41","date_gmt":"2020-11-09T21:00:41","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=312848"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=312848","title":{"rendered":"\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u0434\u043b\u044f \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043d\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0437\u0430\u0439\u043d\u0430 KivyMD"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/2g\/qi\/oy\/2gqioy6jn-gnpgunoev264bbo1g.png\"><\/div>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e, \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0435 \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0438 \u0438 \u0437\u043d\u0430\u0442\u043e\u043a\u0438 Python!<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u0432 \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 Python \u0438 \u0442\u0430\u043a\u0438\u0435 \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043a\u0430\u043a \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a <a href=\"https:\/\/github.com\/kivy\/kivy\" rel=\"nofollow\">Kivy<\/a> \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0437\u0430\u0439\u043d\u0430 <a href=\"https:\/\/github.com\/HeaTTheatR\/KivyMD\" rel=\"nofollow\">KivyMD<\/a>, \u0442\u043e\u0433\u0434\u0430 \u0432\u0430\u043c \u0442\u043e\u0447\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445 \u0434\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u043d\u0430\u0431\u043e\u0440\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 KivyMD<a name=\"habracut\"><\/a><\/p>\n<p>  \u0421\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u043c\u044b (\u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 KivyMD) \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043d\u0430 GitHub <a href=\"https:\/\/github.com\/kivymd-extensions\" rel=\"nofollow\">KivyMD-Extension<\/a> \u2014 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u044e, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 KivyMD. \u042d\u0442\u043e \u043f\u0430\u043a\u0435\u0442\u044b \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u044b \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0441\u043e \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0435\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0437\u0430\u0439\u043d\u0430, \u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 KivyMD \u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u044f\u044e\u0442 \u0435\u0435. \u041e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0442\u0430\u043a\u0438\u0445 \u043f\u0430\u043a\u0435\u0442\u0430\u0445 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0441\u0435\u0433\u043e\u0434\u043d\u044f.<\/p>\n<h2>AKivyMD<\/h2>\n<p>  <a href=\"https:\/\/github.com\/kivymd-extensions\/akivymd\" rel=\"nofollow\">AKivyMD<\/a> (Awesome KivyMD) \u2014 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432, \u0430\u043d\u0438\u043c\u0430\u0446\u0438\u0439 \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0441\u0442\u0435\u0439:<\/p>\n<p>  <b>Bottom navigation<\/b><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/m9\/fb\/in\/m9fbinvxcthg5-isrdys_y6xiik.gif\"><\/div>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">from kivy.lang import Builder  from kivymd.app import MDApp from kivymd.uix.screen import MDScreen  from kivymd_extensions.akivymd import *  Builder.load_string(     &quot;&quot;&quot; &lt;On_active_button@Button_Item&gt;     icon_color: app.theme_cls.text_color     text_color: app.theme_cls.text_color     button_bg_color: app.theme_cls.primary_color     mode: &quot;color_on_active&quot;     badge_disabled: True   &lt;BottomNavigation&gt;     name: &quot;BottomNavigation&quot;      MDBoxLayout:         orientation: &quot;vertical&quot;         spacing: &quot;40dp&quot;          MDToolbar:             title: root.name             left_action_items: [[&quot;arrow-left&quot; , lambda x: x]]          AKBottomNavigation2:             bg_color: app.theme_cls.bg_darkest              On_active_button:                 text: &quot;Alert&quot;                 icon: &quot;bell-outline&quot;              On_active_button:                 text: &quot;Bank&quot;                 icon: &quot;bank-outline&quot;              On_active_button:                 text: &quot;Download&quot;                 icon: &quot;arrow-down-bold-outline&quot;          AKBottomNavigation2:             bg_color: app.theme_cls.bg_darkest              Button_Item:                 text: &quot;Alert&quot;                 icon: &quot;bell-outline&quot;                 icon_color: .3, .2, .3, 1                 text_color: .3, .2, .3, 1                 button_bg_color: .7, .5, .7, 1                 badge_text: &quot;+12&quot;              Button_Item:                 text: &quot;Bank&quot;                 badge_text: &quot;&quot;                 icon: &quot;bank-outline&quot;                 icon_color: .2, .2, .6, 1                 text_color: .2, .2, .6, 1                 button_bg_color: .6, .6, 1, 1              Button_Item:                 text: &quot;Download&quot;                 icon: &quot;arrow-down-bold-outline&quot;                 icon_color: .8, 0, 0, 1                 text_color: .8, 0, 0, 1                 button_bg_color: 1, .6, .6, 1                 badge_disabled: True          Widget:          AKBottomNavigation:             items: root.bottomnavigation_items &quot;&quot;&quot; )   class BottomNavigation(MDScreen):     bottomnavigation_items = [         {&quot;icon&quot;: &quot;android&quot;, &quot;text&quot;: &quot;android&quot;, &quot;on_release&quot;: lambda x: None},         {&quot;icon&quot;: &quot;menu&quot;, &quot;text&quot;: &quot;menu&quot;, &quot;on_release&quot;: lambda x: None},         {&quot;icon&quot;: &quot;account&quot;, &quot;text&quot;: &quot;account&quot;, &quot;on_release&quot;: lambda x: None},     ]   class Test(MDApp):     def build(self):         return BottomNavigation()   Test().run() <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <b>Spinners<\/b><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/-b\/u-\/ut\/-bu-utcxuvmoniwzzjrtmtpha2g.gif\"><\/div>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">from kivy.lang import Builder  from kivymd.app import MDApp from kivymd.uix.screen import MDScreen  from kivymd_extensions.akivymd import *  Builder.load_string(     &quot;&quot;&quot; &lt;SpinnerBox@MDBoxLayout&gt;     adaptive_height: True     text: &quot;&quot;      MDLabel:         theme_text_color: &quot;Primary&quot;         text: root.text         size_hint_x: None         width: &quot;200dp&quot;         halign: &quot;center&quot;         valign: &quot;center&quot;   &lt;Spinners&gt;     name: &quot;Spinners&quot;      on_leave:         root.stop_animation()      MDBoxLayout:         orientation: &quot;vertical&quot;          MDToolbar:             title: root.name             left_action_items: [[&quot;arrow-left&quot;, lambda x: x]]          MDFloatLayout:             padding: &quot;10dp&quot;              AKSpinnerCircleFlip:                 id: circleflip                 spinner_size: &quot;30dp&quot;                 pos_hint: {&quot;center_x&quot;: .5, &quot;top&quot;: .9}              AKSpinnerDoubleBounce:                 id:doublebounce                 spinner_size: &quot;30dp&quot;                 pos_hint: {&quot;center_x&quot;: .5, &quot;center_y&quot;: .7}              AKSpinnerFoldingCube:                 id: foldingcube                 spinner_size: &quot;40dp&quot;                 pos_hint: {&quot;center_x&quot;: .5, &quot;center_y&quot;: .4}                 angle: 45              AKSpinnerThreeDots:                 id: threedots                 spinner_size: &quot;20dp&quot;                 pos_hint: {&quot;center_x&quot;: .5, &quot;y&quot;: .1}              Widget:      MDBoxLayout:         padding: &quot;5dp&quot;         spacing: &quot;5dp&quot;          MDRaisedButton:             text: &quot;Start&quot;             on_release: root.start_animation()          MDRaisedButton:             text: &quot;Stop&quot;             on_release: root.stop_animation() &quot;&quot;&quot; )   class Spinners(MDScreen):     def stop_animation(self):         ids = self.ids         ids.foldingcube.active = False         ids.threedots.active = False         ids.doublebounce.active = False         ids.circleflip.active = False      def start_animation(self):         ids = self.ids         ids.foldingcube.active = True         ids.threedots.active = True         ids.doublebounce.active = True         ids.circleflip.active = True   class Test(MDApp):     def build(self):         return Spinners()   Test().run() <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <b>Piechart<\/b><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/et\/jr\/d-\/etjrd-xv0b3-5h2d4ndt5hpt82c.gif\"><\/div>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">from kivy.lang import Builder from kivy.metrics import dp  from kivymd.app import MDApp from kivymd.uix.screen import MDScreen  from kivymd_extensions.akivymd.uix.piechart import AKPieChart  Builder.load_string(     &quot;&quot;&quot; &lt;Piechart&gt;     on_leave: root.remove_chart()     name: &quot;Piechart&quot;      MDBoxLayout:         orientation: &quot;vertical&quot;          MDToolbar:             title: root.name             left_action_items: [[&quot;arrow-left&quot;, lambda x: x]]          ScrollView:              MDBoxLayout:                 id: chart_box                 adaptive_height: True                 padding: &quot;24dp&quot;                 orientation: &quot;vertical&quot;          MDBoxLayout:             adaptive_height: True             padding: &quot;4dp&quot;             spacing: &quot;4dp&quot;              MDRaisedButton:                 text: &quot;Update&quot;                 on_release: root.update_chart() &quot;&quot;&quot; )   class Piechart(MDScreen):     items = [{&quot;Python&quot;: 40, &quot;Java&quot;: 30, &quot;C++&quot;: 10, &quot;PHP&quot;: 8, &quot;Ruby&quot;: 12}]      def __init__(self, **kw):         super().__init__(**kw)      def on_enter(self):         self.piechart = AKPieChart(             items=self.items,             pos_hint={&quot;center_x&quot;: 0.5, &quot;center_y&quot;: 0.5},             size_hint=[None, None],             size=(dp(300), dp(300)),         )         self.ids.chart_box.add_widget(self.piechart)      def update_chart(self):         self.piechart.items = [{&quot;Python&quot;: 70, &quot;Dart&quot;: 10, &quot;C#&quot;: 10, &quot;Css&quot;: 10}]      def remove_chart(self):         self.ids.chart_box.remove_widget(self.piechart)   class Test(MDApp):     def build(self):         self.piechart = Piechart()         return self.piechart      def on_start(self):         self.piechart.dispatch(&quot;on_enter&quot;)   Test().run() <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <b>Onboarding<\/b><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/0m\/vu\/z1\/0mvuz1aedn1bfg3gfwz4vmkivq8.gif\"><\/div>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">from kivy.lang import Builder  from kivymd.app import MDApp from kivymd.uix.screen import MDScreen  from kivymd_extensions.akivymd import *  Builder.load_string(     &quot;&quot;&quot; &lt;MyAKOnboardingItem@AKOnboardingItem&gt;     source: &quot;&quot;     text: &quot;&quot;     title: &quot;&quot;      MDFloatLayout:          Image:             source: root.source             pos_hint: {&quot;center_x&quot;: .5, &quot;y&quot;: .6}             size_hint: .4, .3          MDBoxLayout:             orientation: &quot;vertical&quot;             padding: dp(10)             adaptive_height: True             pos_hint: {&quot;center_x&quot;: .5, &quot;top&quot;: .5}             spacing: dp(20)             size_hint_x: .7              canvas.before:                 Color:                     rgba: app.theme_cls.primary_dark                 RoundedRectangle:                     pos: self.pos                     size: self.size              MDLabel:                 text: root.title                 bold: True                 size_hint_y: None                 height: self.texture_size[1]                 theme_text_color: &quot;Primary&quot;                 font_style: &quot;H6&quot;                 halign: &quot;center&quot;                 valign: &quot;center&quot;              MDLabel:                 size_hint_y: None                 height: self.texture_size[1]                 theme_text_color: &quot;Primary&quot;                 font_style: &quot;Body1&quot;                 halign: &quot;center&quot;                 valign: &quot;center&quot;                 text: root.text   &lt;Onboarding&gt;     name: &quot;Onboarding&quot;     on_leave: boarding.reset()      MDBoxLayout:         orientation: &quot;vertical&quot;         spacing: dp(10)          AKOnboarding:             id: boarding             on_finish: root.finish_callback()             circles_size: dp(15)              MyAKOnboardingItem:                 source: &quot;assets\/slide_one_img.png&quot;                 text:                     &quot;Lorem Ipsum is simply dummy text of the printing and &quot; \\                     &quot;typesetting industry. Lorem Ipsum has been the industry's &quot; \\                     &quot;standard dummy text ever since the 1500s, when an unknown &quot; \\                     &quot;printer took a galley of type and scrambled it to make a type specimen book&quot;                 title:&quot;What is Lorem Ipsum?&quot;              MyAKOnboardingItem:                 source: &quot;assets\/slide_two_img.png&quot;                 text:                     &quot;It is a long established fact that a reader will be distracted &quot; \\                     &quot;by the readable content of a page when looking at its layout.&quot;                 title: &quot;Why do we use it?&quot;              MyAKOnboardingItem:                 source: &quot;assets\/slide_three_img.png&quot;                 text:                     &quot;Contrary to popular belief, Lorem Ipsum is not simply random text. &quot; \\                     &quot;It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.&quot;                 title: &quot;Where does it come from?&quot; &quot;&quot;&quot; )   class Onboarding(MDScreen):     def finish_callback(self):         print(&quot;Finish callback&quot;)   class Test(MDApp):     def build(self):         return Onboarding()   Test().run() <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <b>Navigationrail<\/b><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/p-\/pe\/hv\/p-pehv0mjxei2g150cik8svtgmg.gif\"><\/div>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">from kivy.lang import Builder  from kivymd.app import MDApp from kivymd.uix.screen import MDScreen  from kivymd_extensions.akivymd import *  Builder.load_string(     &quot;&quot;&quot; &lt;Navigationrail&gt;     name: &quot;Navigationrail&quot;      AKNavigationrail:         id: rail          AKNavigationrailCustomItem:             size_hint_y: None             height: dp(60)             padding: dp(5)              MDIconButton:                 icon: &quot;arrow-left&quot;                 theme_text_color: &quot;Custom&quot;                 text_color: 1, 1, 1, 1                 on_release:                     if rail.get_state() == &quot;open&quot;: rail.dismiss(); self.icon=&quot;menu&quot;                     else: rail.open(); self.icon =&quot;arrow-left&quot;          AKNavigationrailItem:             text: &quot;Withdraw&quot;             icon: &quot;wallet-plus&quot;             on_release: scr_mng.current= &quot;withdraw&quot;          AKNavigationrailItem:             text: &quot;Deposit&quot;             icon: &quot;wallet-plus-outline&quot;             on_release: scr_mng.current= &quot;deposit&quot;          AKNavigationrailItem:             text: &quot;Profile&quot;             icon: &quot;account-circle-outline&quot;             on_release: scr_mng.current= &quot;profile&quot;          AKNavigationrailCustomItem:          AKNavigationrailContent:              ScreenManager:                 id: scr_mng                  MDScreen:                     name: &quot;withdraw&quot;                     MDLabel:                         text: &quot;Withdraw&quot;                         halign: &quot;center&quot;                  MDScreen:                     name: &quot;deposit&quot;                      MDLabel:                         text: &quot;Deposit&quot;                         halign: &quot;center&quot;                  MDScreen:                     name: &quot;profile&quot;                      MDLabel:                         text: &quot;Profile&quot;                         halign: &quot;center&quot; &quot;&quot;&quot; )   class Navigationrail(MDScreen):     pass   class Test(MDApp):     def build(self):         return Navigationrail()   Test().run() <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <b>Raiting<\/b><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/dy\/93\/5q\/dy935qjpayzh9wmby3qzwz2ufs0.gif\"><\/div>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">from kivy.lang import Builder  from kivymd.app import MDApp from kivymd.uix.screen import MDScreen  from kivymd_extensions.akivymd import *  Builder.load_string(     &quot;&quot;&quot; &lt;Rating&gt;:     name: &quot;Rating&quot;     BoxLayout:         orientation: &quot;vertical&quot;         MDToolbar:             title: root.name             left_action_items:[[&quot;arrow-left&quot; , lambda x: x]]          FloatLayout:             AKRating:                 normal_icon: &quot;star-circle-outline&quot;                 active_icon: &quot;star-circle&quot;                 pos_hint: {&quot;center_x&quot;: .5, &quot;center_y&quot;: .3}                 on_rate: print(self.get_rate())              AKRating:                 pos_hint: {&quot;center_x&quot;: .5, &quot;center_y&quot;: .5}                 on_rate: print(self.get_rate())                 direction: &quot;rl&quot;              AKRating:                 normal_icon: &quot;star-box-outline&quot;                 active_icon: &quot;star-box&quot;                 active_color: 1,0,0.4,1                 animation_type: &quot;grow&quot;                 pos_hint: {&quot;center_x&quot;: .5, &quot;center_y&quot;: .7}                 on_rate: print(self.get_rate())     &quot;&quot;&quot; )   class Rating(MDScreen):     pass   class Test(MDApp):     def build(self):         return Rating()   Test().run() <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <b>SilverAppbar<\/b><\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/qc\/xh\/us\/qcxhuskk2pokbe6wycy4ixmd0j4.gif\"><\/div>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">from kivy.lang import Builder  from kivymd.app import MDApp from kivymd.uix.list import OneLineListItem from kivymd.uix.screen import MDScreen  from kivymd_extensions.akivymd import *  Builder.load_string(     &quot;&quot;&quot; &lt;SilverAppbar&gt;     name: &quot;SilverAppbar&quot;      AKSilverAppbar:         max_height: dp(300)         title: root.name         left_action_items: [[&quot;arrow-left&quot;, lambda x: x]]         pin_top: True         hide_toolbar: True         radius: dp(20)         toolbar_bg: app.theme_cls.primary_color          AKSilverAppbarHeader:             orientation: &quot;vertical&quot;              Image:                 source: &quot;assets\/fly.jpg&quot;                 allow_stretch: True                 keep_ratio: False          AKSilverAppbarContent:             padding: dp(10)             id: content             size_hint_y: None             height: self.minimum_height             orientation: &quot;vertical&quot;             md_bg_color: app.theme_cls.primary_color &quot;&quot;&quot; )   class SilverAppbar(MDScreen):     def on_enter(self, *args):         for x in range(30):             self.ids.content.add_widget(OneLineListItem(text=&quot;Item %d&quot; % x))   class Test(MDApp):     def build(self):         self.sliver_bar = SilverAppbar()         return self.sliver_bar      def on_start(self):         self.sliver_bar.dispatch(&quot;on_enter&quot;)   Test().run() <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  \u042d\u0442\u043e \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0432\u0441\u0435 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u044b \u043f\u0430\u043a\u0435\u0442\u0430 AKivyMD. \u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438 \u0434\u0440\u0443\u0433\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445 \u044d\u0442\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0435\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438.<\/p>\n<h2>File Manager<\/h2>\n<p>  <a href=\"https:\/\/github.com\/kivymd-extensions\/filemanager\" rel=\"nofollow\">File Manager<\/a> \u2014 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0441\u0442\u043e\u043b\u0430. \u0414\u0430, \u0438\u043c\u0435\u043d\u043d\u043e \u0434\u043b\u044f Desktop, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e KivyMD \u0443\u0436\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 <a href=\"https:\/\/kivymd.readthedocs.io\/en\/latest\/components\/file-manager\/\" rel=\"nofollow\">\u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0439 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440<\/a> \u0434\u043b\u044f \u0432\u044b\u0431\u043e\u0440\u0430 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0439 \u0438 \u0444\u0430\u0439\u043b\u043e\u0432. \u041d\u0435\u0442, File Manager \u0438\u0437 KivyMD Extensions \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0438 \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u0445, \u043d\u043e \u0437\u0430\u0447\u0435\u043c? \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043d\u0435 \u0437\u0430\u043c\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c\u0441\u044f, \u043a\u0430\u043a \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0435. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f Desktop:<\/p>\n<div class=\"oembed\"><iframe id=\"5fa97bac2cbf1a1445b3530d\" src=\"https:\/\/embedd.srv.habr.com\/iframe\/5fa97bac2cbf1a1445b3530d\"><\/iframe><\/div>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<pre><code class=\"python\">from kivymd.app import MDApp  from kivymd_extensions.filemanager import FileManager   class MainApp(MDApp):     def on_start(self):         FileManager().open()   if __name__ == &quot;__main__&quot;:     MainApp().run() <\/code><\/pre>\n<p>  <\/p>\n<h2>Sweet Alert<\/h2>\n<p>  <a href=\"https:\/\/github.com\/kivymd-extensions\/sweetalert\" rel=\"nofollow\">Sweet Alert<\/a> \u2014 \u0430\u043d\u0430\u043b\u043e\u0433 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432\u044b\u0445 \u043e\u043a\u043e\u043d \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u0430 <a href=\"https:\/\/github.com\/sweetalert2\/sweetalert2\" rel=\"nofollow\">sweetalert2<\/a>:<\/p>\n<div class=\"oembed\"><iframe id=\"5fa9796ed4323713fd41589d\" src=\"https:\/\/embedd.srv.habr.com\/iframe\/5fa9796ed4323713fd41589d\"><\/iframe><\/div>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<pre><code class=\"python\">from kivy.lang import Builder  from kivymd.app import MDApp  KV = &quot;&quot;&quot; #:import SweetAlert kivymd_extensions.sweetalert.SweetAlert   MDScreen:      MDRaisedButton:         text: &quot;EXAMPLE&quot;         pos_hint: {&quot;center_x&quot;: .5, &quot;center_y&quot;: .5}         on_release:             SweetAlert(window_control_buttons=&quot;mac-style&quot;).fire(&quot;Any fool can use a computer!&quot;) &quot;&quot;&quot;   class MainApp(MDApp):     def build(self):         return Builder.load_string(KV)   if __name__ == &quot;__main__&quot;:     MainApp().run() <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043c\u043e\u0439 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043e\u0431\u0437\u043e\u0440 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 KivyMD \u043f\u043e\u0434\u043e\u0448\u0435\u043b \u043a \u043a\u043e\u043d\u0446\u0443. \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u043e\u043d \u0431\u044b\u043b \u043f\u043e\u043b\u0435\u0437\u0435\u043d.<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/527194\/\"> https:\/\/habr.com\/ru\/post\/527194\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/2g\/qi\/oy\/2gqioy6jn-gnpgunoev264bbo1g.png\"><\/div>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e, \u0443\u0432\u0430\u0436\u0430\u0435\u043c\u044b\u0435 \u043b\u044e\u0431\u0438\u0442\u0435\u043b\u0438 \u0438 \u0437\u043d\u0430\u0442\u043e\u043a\u0438 Python!<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u0432 \u0441\u0432\u043e\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 Python \u0438 \u0442\u0430\u043a\u0438\u0435 \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u043a\u0430\u043a \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a <a href=\"https:\/\/github.com\/kivy\/kivy\" rel=\"nofollow\">Kivy<\/a> \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0437\u0430\u0439\u043d\u0430 <a href=\"https:\/\/github.com\/HeaTTheatR\/KivyMD\" rel=\"nofollow\">KivyMD<\/a>, \u0442\u043e\u0433\u0434\u0430 \u0432\u0430\u043c \u0442\u043e\u0447\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430\u0445 \u0434\u043b\u044f \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u043d\u0430\u0431\u043e\u0440\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 KivyMD<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-312848","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/312848","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=312848"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/312848\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=312848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=312848"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=312848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}