{"id":295691,"date":"2019-12-17T16:24:11","date_gmt":"2019-12-17T16:24:11","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=295691"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=295691","title":{"rendered":"\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 Python. \u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 KivyMD"},"content":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/480018\/\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fh\/yv\/k9\/fhyvk9mm5z44tjjfhwxj3nl2vxq.jpeg\"><\/div>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e! \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0440\u0435\u0447\u044c \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0439\u0434\u0435\u0442 \u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 <a href=\"https:\/\/github.com\/HeaTTheatR\/KivyMD\" rel=\"nofollow\">KivyMD<\/a> \u2014 \u043d\u0430\u0431\u043e\u0440\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 Python \u0432 \u0441\u0442\u0438\u043b\u0435 Material Design. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0441\u0434\u0435\u043b\u0430\u044e \u043d\u0435 \u043e\u0431\u0437\u043e\u0440 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432 KivyMD, \u043a\u0430\u043a \u0432 <a href=\"https:\/\/habr.com\/ru\/post\/479126\/\">\u043d\u0435\u0434\u0430\u0432\u043d\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a>, \u0430, \u0441\u043a\u043e\u0440\u0435\u0435, \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0431\u043e\u043b\u044c\u0448\u0435 \u043e \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432. \u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435\u0433\u043e \u043d\u0430 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 Python \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432 \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442, \u0442\u0430\u043a \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0441\u043b\u044b\u0448\u0438\u0442\u0435 \u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435 Kivy, \u0432\u0440\u044f\u0434 \u043b\u0438 \u0432\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0435 \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e. \u041d\u0443, \u0430 \u043c\u044b \u043f\u043e\u0433\u043d\u0430\u043b\u0438 \u043f\u043e\u0434 \u043a\u0430\u0442!<a name=\"habracut\"><\/a><\/p>\n<p>  \u041d\u0430 \u0434\u043d\u044f\u0445 \u0441\u043a\u0430\u0447\u0430\u043b \u0438\u0437 Google Play \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 Flutter UIKit:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/tm\/84\/ry\/tm84ry5hb_bh1ktkv0zz0ozbjre.png\"><\/div>\n<p>  \u0418 \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u044b \u0441 \u0432\u0430\u043c\u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u043e\u0434\u0438\u043d \u044d\u043a\u0440\u0430\u043d \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b: \u0441\u043b\u0435\u0432\u0430 \u2014 Flutter, \u0441\u043f\u0440\u0430\u0432\u0430 \u2014 Kivy &amp; KivyMD.   <\/p>\n<div class=\"scrollable-table\">\n<table>\n<tbody>\n<tr>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/0s\/qb\/g5\/0sqbg5capium6ikdgi9-fr21bjg.gif\"><\/div>\n<\/td>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ol\/0y\/tq\/ol0ytqia2d9eu5fc1cb6-yfk4o8.gif\"><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b UI \u043e\u0442\u043b\u0438\u0447\u0430\u044e\u0442\u0441\u044f, \u043d\u0435 \u0432 \u0441\u0438\u043b\u0443 \u043a\u0430\u043a\u0438\u0445-\u0442\u043e \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439, \u0438\u0437-\u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u043b\u044c\u0437\u044f \u0431\u044b\u043b\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u044f \u043f\u043e\u0441\u0447\u0438\u0442\u0430\u043b, \u0447\u0442\u043e \u0442\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u0435\u0435 \u043e\u0440\u0433\u0430\u043d\u0438\u0447\u043d\u0435\u0439 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0435\u0440\u043d\u044b\u0439 Toolbar, \u043f\u043e \u043c\u043e\u0435\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e, \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0441\u044f).<\/p>\n<p>  \u0418\u0442\u0430\u043a! \u0427\u0442\u043e \u0431\u0440\u043e\u0441\u0430\u0435\u0442\u0441\u044f \u0432 \u0433\u043b\u0430\u0437\u0430, \u0433\u043b\u044f\u0434\u044f \u043d\u0430 \u044d\u043a\u0440\u0430\u043d, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c? \u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u044b\u0439 \u0444\u043e\u043d \u043f\u0435\u0440\u0435\u0434\u043d\u0435\u0433\u043e layout. \u0412 Kivy \u0442\u0430\u043a\u0443\u044e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 FloatLayout, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u0432 \u0441\u0435\u0431\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u044b \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u044b \u043e\u0434\u0438\u043d \u043d\u0430\u0434 \u0434\u0440\u0443\u0433\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/c_\/40\/0l\/c_400lso-3wpzuwtomq9gatkkdo.gif\"><\/div>\n<p>  \u0421\u0445\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u043e \u043d\u0430\u0448 \u044d\u043a\u0440\u0430\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/sr\/nj\/wi\/srnjwizps9zvmmyf87vh-gacmb4.png\"><\/div>\n<p>  \u0420\u0430\u0437\u043c\u0435\u0442\u043a\u0430 \u044d\u0442\u043e\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430\u044f:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/f2\/v4\/fk\/f2v4fkjr4koxfmrx-q47ijmqv10.png\"><\/div>\n<p>  \u041f\u043e\u0447\u0435\u043c\u0443 \u044f \u0433\u043e\u0432\u043e\u0440\u044e \u043e FloatLayout, \u0435\u0441\u043b\u0438 \u043d\u0430\u0448 \u044d\u043a\u0440\u0430\u043d \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d \u043e\u0442 Screen?<\/p>\n<pre><code class=\"python\">&lt;ProductScreen@Screen&gt;:      ... <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e Screen &#8212;&gt; RelativeLayout &#8212;&gt; FloatLayout.<\/p>\n<p>  \u0412\u0441\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u044b \u0432\u043e FloatLayout \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u043e\u0442 \u043d\u0438\u0436\u043d\u0435\u0433\u043e \u043b\u0435\u0432\u043e\u0433\u043e \u0443\u0433\u043b\u0430, \u0442\u043e \u0435\u0441\u0442\u044c, \u043d\u0430 \u044d\u043a\u0440\u0430\u043d\u0435 \u0438\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u044f (0, 0). \u0412 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0435 \u043d\u0435 \u0441\u043b\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u043b\u0435\u0434\u0438\u0442\u044c \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0441\u0432\u0435\u0440\u0445\u0443 \u0432\u043d\u0438\u0437:<\/p>\n<div class=\"scrollable-table\">\n<table>\n<tbody>\n<tr>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/vq\/52\/uc\/vq52ucxehs7aey5e-obcx1kkvxw.png\"><\/div>\n<\/td>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/tf\/tu\/k-\/tftuk-up_zjlfanydsh7zrbk7zo.png\"><\/div>\n<\/td>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ua\/zp\/df\/uazpdft3_8frpysqcfipa5pqebq.png\"><\/div>\n<\/td>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/qa\/is\/io\/qaisionczxy0gw9vw7tvsbxwdxk.png\"><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  \u0415\u0441\u043b\u0438 \u043a\u0442\u043e-\u0442\u043e \u043e\u0431\u0440\u0430\u0442\u0438\u043b \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0442\u043e \u043f\u043e\u0437\u0438\u0446\u0438\u044e \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0432\u0438\u0434\u0436\u0435\u0442\u0443:<\/p>\n<pre><code class=\"python\">MDToolbar:     ...     pos_hint: {\"top\": 1} <\/code><\/pre>\n<p>  \u041a\u0430\u0436\u0434\u043e\u043c\u0443 \u0432\u0438\u0434\u0436\u0435\u0442\u0443 \u0432 Kivy \u043f\u043e\u043c\u0438\u043c\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 (x, y) \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0443 \u043f\u043e\u0437\u0438\u0446\u0438\u0438:<\/p>\n<pre><code class=\"python\">pos_hint: {\"top\": 1}  # \u0432\u0435\u0440\u0445\u043d\u044f\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u044d\u043a\u0440\u0430\u043d\u0430 pos_hint: {\"bottom\": 1}  # \u043d\u0438\u0436\u043d\u044f\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u044d\u043a\u0440\u0430\u043d\u0430 pos_hint: {\"right\": 1}  # \u043f\u0440\u0430\u0432\u0430\u044f \u0433\u0440\u0430\u043d\u0438\u0446\u0430 \u044d\u043a\u0440\u0430\u043d\u0430 pos_hint: {\"center_y\": .5}  # \u0446\u0435\u043d\u0442\u0440 \u044d\u043a\u0440\u0430\u043d\u0430 \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438 pos_hint: {\"center_x\": .2}  # \u043e\u0442\u0441\u0442\u0443\u043f \u0432 20 % \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438 \u043e\u0442 \u043b\u0435\u0432\u043e\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u044d\u043a\u0440\u0430\u043d\u0430 ... ... <\/code><\/pre>\n<p>  \u0422\u0430\u043a \u0432\u043e\u0442, \u043d\u0438\u0436\u043d\u0435\u0435 \u0444\u043e\u043d\u043e\u0432\u043e\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435\u2026<\/p>\n<pre><code class=\"python\">    BoxLayout:         size_hint_y: None         height: root.height - toolbar.height          FitImage:             source: \"smokestackheather.jpeg\" <\/code><\/pre>\n<p>  \u2026 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u0443 FitImage (\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 KivyMD), \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0430\u0441\u0442\u044f\u0433\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0432\u0441\u0435 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u0435\u043c\u0443 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e \u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u0439 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/pd\/eq\/gj\/pdeqgjklraggvs0_rxi17ywpc-i.gif\"><\/div>\n<p>  \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0432\u0438\u0434\u0436\u0435\u0442\u0443 \u0438 \u043b\u0430\u0439\u043e\u0443\u0442\u0443 \u0432 Kivy \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f 100 % \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e \u0438\u043d\u043e\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0432\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u043e\u0434\u043d\u0443 \u043a\u043d\u043e\u043f\u043a\u0443, \u0432\u044b, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<pre><code class=\"python\">from kivy.app import App from kivy.lang import Builder  KV = \"\"\" Button:     text: \"Button\" \"\"\"   class MyApp(App):     def build(self):         return Builder.load_string(KV)   MyApp().run() <\/code><\/pre>\n<p>  \u0418 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/bb\/ja\/sp\/bbjasp88eyzeqwsvoay1xqy0ub4.png\"><\/div>\n<p>  \u041a\u043d\u043e\u043f\u043a\u0430 \u0437\u0430\u043d\u044f\u043b\u0430 100 % \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430. \u0427\u0442\u043e\u0431\u044b \u0440\u0430\u0437\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 \u043f\u043e \u0446\u0435\u043d\u0442\u0440\u0443 \u044d\u043a\u0440\u0430\u043d\u0430, \u043d\u0443\u0436\u043d\u043e, \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u0437\u0430\u0434\u0430\u0442\u044c \u0435\u0439 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0438, \u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u0443\u043a\u0430\u0437\u0430\u0442\u044c, \u0433\u0434\u0435 \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f:<\/p>\n<pre><code class=\"python\">from kivy.app import App from kivy.lang import Builder  KV = \"\"\" Button:     text: \"Button\"     size_hint: None, None     size: 100, 50     pos_hint: {\"center_y\": .5, \"center_x\": .5} \"\"\"   class MyApp(App):     def build(self):         return Builder.load_string(KV)   MyApp().run() <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043a\u0430\u0440\u0442\u0438\u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0430\u0441\u044c:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/qg\/zm\/rt\/qgzmrthki7x1s0m7eyeifudroy8.png\"><\/div>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e <i>size_hint<\/i>, \u043e\u0442 0 \u0434\u043e 1, (\u044d\u043a\u0432\u0438\u0432\u0430\u043b\u0435\u043d\u0442 0-100%), \u0442\u043e \u0435\u0441\u0442\u044c, \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0430:<\/p>\n<pre><code class=\"python\">from kivy.app import App from kivy.lang import Builder  KV = \"\"\" BoxLayout:      Button:         text: \"Button\"         size_hint_y: .2      Button:         text: \"Button\"         size_hint_y: .1      Button:         text: \"Button\" \"\"\"   class MyApp(App):     def build(self):         return Builder.load_string(KV)   MyApp().run() <\/code><\/pre>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/rh\/2k\/et\/rh2ketuqypjruizjhr_ziybgznm.png\"><\/div>\n<p>  \u0418\u043b\u0438 \u0442\u043e\u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u043d\u043e \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0430 \u0448\u0438\u0440\u0438\u043d\u044b (<i>size_hint_x<\/i>):<\/p>\n<pre><code class=\"python\">from kivy.app import App from kivy.lang import Builder  KV = \"\"\" BoxLayout:      Button:         text: \"Button\"         size_hint_x: .2      Button:         text: \"Button\"         size_hint_x: .1      Button:         text: \"Button\" \"\"\"   class MyApp(App):     def build(self):         return Builder.load_string(KV)   MyApp().run() <\/code><\/pre>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/aj\/ov\/pq\/ajovpqddgp5v-smybnqd7n9zhvu.png\"><\/div>\n<p>  MDToolbar \u0438\u043c\u0435\u0435\u0442 \u0432\u044b\u0441\u043e\u0442\u0443 \u0432 56dp, \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e, \u0438 \u0435\u0441\u043b\u0438 \u0435\u043c\u0443 \u043d\u0435 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e \u0435\u0433\u043e \u043c\u0435\u0441\u0442\u043e \u0441\u0432\u0435\u0440\u0445\u0443, \u0442\u043e \u043e\u043d \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0438\u043b\u0438\u043f\u043d\u0435\u0442 \u043a \u043d\u0438\u0436\u043d\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u044d\u043a\u0440\u0430\u043d\u0430:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/sr\/xg\/dy\/srxgdytks_k4afgcgo_er4frzcc.png\"><\/div>\n<p>  \u0421\u043f\u0438\u0441\u043e\u043a \u043a\u0430\u0440\u0442\u043e\u0447\u0435\u043a \u2014 OrderProductLayout (\u043e \u043d\u0435\u043c \u043c\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043d\u0438\u0436\u0435) \u2014 \u044d\u0442\u043e ScrollView \u0441 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c\u0438 MDCard \u0438 \u043e\u043d \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0432\u0441\u044e \u0432\u044b\u0441\u043e\u0442\u0443 \u044d\u043a\u0440\u0430\u043d\u0430, \u043d\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f padding (\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0442\u0441\u0442\u0443\u043f\u043e\u0432 \u0432 \u043b\u0430\u0439\u043e\u0443\u0442\u0430\u0445) \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043e\u043d \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0447\u0443\u0442\u044c \u0432\u044b\u0448\u0435 \u0446\u0435\u043d\u0442\u0440\u0430 \u044d\u043a\u0440\u0430\u043d\u0430. \u041d\u0443 \u0430 MDBottomAppBar \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043a\u0438\u0434\u0430\u0435\u0442 \u044f\u043a\u043e\u0440\u044c \u043a \u043d\u0438\u0436\u043d\u0435\u0439 \u0433\u0440\u0430\u043d\u0438\u0446\u0435 \u044d\u043a\u0440\u0430\u043d\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0442\u043e\u043b\u044c\u043a\u043e MDToolbar \u043c\u044b \u0443\u043a\u0430\u0437\u0430\u043b\u0438, \u0433\u0434\u0435 \u0435\u0433\u043e \u043c\u0435\u0441\u0442\u043e.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u0432\u0438\u0434\u0436\u0435\u0442 OrderProductLayout:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/cd\/ny\/df\/cdnydfqcsdrp1fpjvgstozxwsyo.png\"><\/div>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, \u044d\u0442\u043e \u0447\u0435\u0442\u044b\u0440\u0435 \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438, \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0432 ScrillView. \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u0433\u043e \u044d\u043a\u0440\u0430\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d \u043e\u0442 FloatLayout, \u0437\u0434\u0435\u0441\u044c \u0432\u0441\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u044b \u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u0441\u0432\u0435\u0440\u0445\u0443 \u0432\u043d\u0438\u0437. <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/_s\/1r\/g7\/_s1rg7vxvdm338fukojtqavxc-0.png\"><\/div>\n<p>  \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u0440\u043e\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0442\u043a\u0430\u044f \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432, \u0434\u0440\u0435\u0432\u043e\u0432\u0438\u0434\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0438 \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0437\u0433\u043b\u044f\u0434\u0430 \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043a\u0430\u043a\u043e\u0439 \u0432\u0438\u0434\u0436\u0435\u0442\/\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b \u043a\u0430\u043a\u043e\u043c\u0443 \u043b\u0430\u0439\u043e\u0443\u0442\u0443 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442. \u0412 Kivy \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0447\u0430\u0441\u0442\u044b\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u043c \u043b\u0430\u0439\u043e\u0443\u0442\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f BoxLayout \u2014 \u043a\u043e\u0440\u043e\u0431\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u0432 \u0441\u0435\u0431\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u044b \u043f\u043e \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u0438 \u043b\u0438\u0431\u043e \u043f\u043e \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u0438 (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435):<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/_z\/yc\/7k\/_zyc7kqu3ts-mtm5lbfay9h_goe.gif\"><\/div>\n<p>  \u0411\u043e\u043b\u0435\u0435 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e \u044d\u0442\u043e \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0445\u0435\u043c\u044b, \u0433\u0434\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f BoxLayout \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u0438:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/bb\/9i\/60\/bb9i60usljix_9flwnxtkwuigu8.png\"><\/div>\n<p>  \u041c\u044b \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u043b\u0438 BoxLayout \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c 100% \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u2014 <i>size_hint_y: None<\/i> \u0438 \u0441\u043a\u0430\u0437\u0430\u043b\u0438 \u2014 \u0442\u0432\u043e\u044f \u0432\u044b\u0441\u043e\u0442\u0430 \u0431\u0443\u0434\u0435\u0442 \u0440\u043e\u0432\u043d\u043e \u0442\u0430\u043a\u043e\u0439, \u043a\u0430\u043a\u043e\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0441\u043e\u0442\u0430 \u0441\u0430\u043c\u043e\u0433\u043e \u0432\u044b\u0441\u043e\u043a\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u0432 \u0442\u0435\u0431\u044f \u2014 <i>height: self.minimum_height<\/i>.<\/p>\n<p>  \u0421\u043f\u0438\u0441\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0439:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/d9\/ad\/ur\/d9adurj6ykm24hragf_ryyrahjq.png\"><\/div>\n<p>  \u0415\u0441\u043b\u0438 \u0431\u044b \u043c\u044b \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0435\u0440\u0442\u0438\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0443 \u0441\u043f\u0438\u0441\u043a\u0430, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c GridLayout \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"python\">    ScrollView:          GridLayout:             size_hint_y: None             height: self.minimum_height             cols: 1 <\/code><\/pre>\n<p>  \u0417\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438 (<i>rows<\/i>) \u043d\u0430 \u0441\u0442\u043e\u043b\u0431\u0446\u044b (<i>cols<\/i>) \u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432 <i>minimum<\/i> \u043d\u0435 \u0448\u0438\u0440\u0438\u043d\u0443, \u0430 \u0432\u044b\u0441\u043e\u0442\u0443:<\/p>\n<pre><code class=\"python\">from kivy.app import App from kivy.lang import Builder from kivy.metrics import dp from kivy.uix.button import Button  KV = \"\"\" ScrollView:      GridLayout:         id: box         size_hint_y: None         height: self.minimum_height         spacing: \"5dp\"         cols: 1 \"\"\"   class MyApp(App):     def build(self):         return Builder.load_string(KV)      def on_start(self):         for i in range(20):             self.root.ids.box.add_widget(                 Button(                     text=f\"Label {i}\",                     size_hint_y=None,                     height=dp(40),                 )             )   MyApp().run() <\/code><\/pre>\n<p>  <\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ah\/jz\/op\/ahjzoplhryswplb0rrgxv11ghnq.gif\"><\/div>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043a\u0430\u0440\u0442\u044b \u2014 \u0432\u044b\u0431\u043e\u0440 \u0446\u0432\u0435\u0442\u0430 \u0438 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 (\u043e\u043d\u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u044b):<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/rp\/i4\/g3\/rpi4g30_lt6ei40mhehmcjo9oe0.png\"><\/div>\n<p>  \u041e\u0442\u043b\u0438\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u044f\u0437\u044b\u043a\u0430 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 Kv Language \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0435\u0442\u043a\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432, \u043d\u043e \u0438 \u0442\u043e, \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u044f\u0437\u044b\u043a \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u044f\u0437\u044b\u043a\u0430 Python. \u0410 \u0438\u043c\u0435\u043d\u043d\u043e: \u0432\u044b\u0437\u043e\u0432 \u043c\u0435\u0442\u043e\u0434\u043e\u0432, \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\/\u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445, \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435, I\/O \u0438 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438\u2026<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/o6\/ey\/hc\/o6eyhcv2d3eblbgr1e7olobfodi.png\"><\/div>\n<p>  \u0412\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <i>value<\/i>, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432 <i>Label<\/i>\u2026<\/p>\n<pre><code class=\"python\">        Label:             value: 0             text: str(self.value) <\/code><\/pre>\n<p>  \u2026 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u0441\u0430\u043c\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0435:<\/p>\n<pre><code class=\"python\">        MDIconButton:             on_release: label_value.value -= 1 if label_value.value &gt; 0 else 0 <\/code><\/pre>\n<p>  \u0418 \u044f \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043f\u043e\u0432\u0435\u0440\u044e, \u0447\u0442\u043e \u0432\u043e\u0442 \u044d\u0442\u043e (\u043a\u043e\u0434 Flutter)\u2026<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/zg\/ow\/fr\/zgowfrrueqp58kncidj9ocwkcta.png\"><\/div>\n<p>  \u2026 \u043b\u043e\u0433\u0438\u0447\u043d\u0435\u0435 \u0438 \u0447\u0438\u0442\u0430\u0431\u0435\u043b\u044c\u043d\u0435\u0435 \u043a\u043e\u0434\u0430 Kv Language:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/zj\/pi\/sz\/zjpisz6qkidtznhbcwzmmljhq54.png\"><\/div>\n<p>  \u0412\u0447\u0435\u0440\u0430 \u043c\u0435\u043d\u044f \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u043b\u0438, \u043a\u0430\u043a \u0443 Kivy \u043e\u0431\u0441\u0442\u043e\u044f\u0442 \u0434\u0435\u043b\u0430 \u0441\u043e \u0441\u0440\u0435\u0434\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0435\u0441\u0442\u044c \u043b\u0438 \u0430\u0432\u0442\u043e\u043a\u043e\u043c\u043f\u043b\u0438\u0442\u044b, \u0445\u043e\u0442\u0440\u0435\u043b\u043e\u0430\u0434 \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u043f\u0440\u0435\u043b\u0435\u0441\u0442\u0438? \u0421 \u0430\u0432\u0442\u043e\u043a\u043e\u043c\u043f\u043b\u0438\u0442\u0430\u043c\u0438 \u0432\u0441\u0435 \u043e\u0442\u043b\u0438\u0447\u043d\u043e, \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f PyCharm:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ah\/rj\/jc\/ahrjjcqanf1g-ncw5i9rgtlhnme.png\"><\/div>\n<p>  \u041d\u0430\u0441\u0447\u0435\u0442 \u0445\u043e\u0442\u0440\u0435\u043b\u043e\u0430\u0434\u2026 Python \u2014 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u044f\u0437\u044b\u043a. Kivy \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 Python. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043d\u0435 \u043d\u0443\u0436\u043d\u0430 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u043a\u043e\u0434\u0430, \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043b \u2014 \u0443\u0432\u0438\u0434\u0435\u043b\/\u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u0432\u0430\u043b. \u041a\u0430\u043a \u044f \u0443\u0436\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b, Kivy \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 API \u0434\u043b\u044f \u0440\u0435\u043d\u0434\u0435\u0440\u0430 UI, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u044d\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0434\u0443\u043b\u044f <i>screen<\/i>. \u0414\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432\u0430\u0448 \u043f\u0440\u043e\u0435\u043a\u0442 \u0441 \u043d\u0443\u0436\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u043e\u0442\u043a\u0440\u044b\u043b\u043e\u0441\u044c \u043e\u043a\u043d\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0442\u0430\u043a, \u043a\u0430\u043a \u0435\u0441\u043b\u0438 \u0431\u044b \u043e\u043d\u043e \u0431\u044b\u043b\u043e \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435. \u0417\u0432\u0443\u0447\u0438\u0442 \u0441\u0442\u0440\u0430\u043d\u043d\u043e, \u043d\u043e \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 Kivy \u0430\u0431\u0441\u0442\u0440\u0430\u0433\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0432 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0435 UI, \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u044f\u0436\u0435\u043b\u044b\u0435 \u0438 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u0435 \u044d\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u044b \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u043e\u0432. \u042d\u0442\u043e \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e UI. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u043e\u0435 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u043e\u0441\u044c \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 <i>-m screen:droid2, portrait, scale=.75<\/i>.<\/p>\n<p>  \u0421\u043b\u0435\u0432\u0430 \u2014 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435, \u0441\u043f\u0440\u0430\u0432\u0430 \u2014 \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435:   <\/p>\n<div class=\"scrollable-table\">\n<table>\n<tbody>\n<tr>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/h_\/tj\/cb\/h_tjcbowgu6dotqbkzm4oduamqs.png\"><\/div>\n<\/td>\n<td>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/4p\/m7\/s8\/4pm7s8q6m-xxmg09zejp5fa4cxk.png\"><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u043e\u0434\u0443\u043b\u044f screen:<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"python\">devices = {     # device: (name, width, height, dpi, density)     'onex': ('HTC One X', 1280, 720, 312, 2),     'one': ('HTC One', 1920, 1080, 468, 3),     'onesv': ('HTC One SV', 800, 480, 216, 1.5),     's3': ('Galaxy SIII', 1280, 720, 306, 2),     'note2': ('Galaxy Note II', 1280, 720, 267, 2),     'droid2': ('Motorola Droid 2', 854, 480, 240, 1.5),     'xoom': ('Motorola Xoom', 1280, 800, 149, 1),     'ipad': ('iPad (1 and 2)', 1024, 768, 132, 1),     'ipad3': ('iPad 3', 2048, 1536, 264, 2),     'iphone4': ('iPhone 4', 960, 640, 326, 2),     'iphone5': ('iPhone 5', 1136, 640, 326, 2),     'xperiae': ('Xperia E', 480, 320, 166, 1),     'nexus4': ('Nexus 4', 1280, 768, 320, 2),     'nexus7': ('Nexus 7 (2012 version)', 1280, 800, 216, 1.325),     'nexus7.2': ('Nexus 7 (2013 version)', 1920, 1200, 323, 2),      # taken from design.google.com\/devices     # please consider using another data instead of     # a dict for autocompletion to work     # these are all in landscape     'phone_android_one': ('Android One', 854, 480, 218, 1.5),     'phone_htc_one_m8': ('HTC One M8', 1920, 1080, 432, 3.0),     'phone_htc_one_m9': ('HTC One M9', 1920, 1080, 432, 3.0),     'phone_iphone': ('iPhone', 480, 320, 168, 1.0),     'phone_iphone_4': ('iPhone 4', 960, 640, 320, 2.0),     'phone_iphone_5': ('iPhone 5', 1136, 640, 320, 2.0),     'phone_iphone_6': ('iPhone 6', 1334, 750, 326, 2.0),     'phone_iphone_6_plus': ('iPhone 6 Plus', 1920, 1080, 400, 3.0),     'phone_lg_g2': ('LG G2', 1920, 1080, 432, 3.0),     'phone_lg_g3': ('LG G3', 2560, 1440, 533, 3.0),     'phone_moto_g': ('Moto G', 1280, 720, 327, 2.0),     'phone_moto_x': ('Moto X', 1280, 720, 313, 2.0),     'phone_moto_x_2nd_gen': ('Moto X 2nd Gen', 1920, 1080, 432, 3.0),     'phone_nexus_4': ('Nexus 4', 1280, 768, 240, 2.0),     'phone_nexus_5': ('Nexus 5', 1920, 1080, 450, 3.0),     'phone_nexus_5x': ('Nexus 5X', 1920, 1080, 432, 2.6),     'phone_nexus_6': ('Nexus 6', 2560, 1440, 496, 3.5),     'phone_nexus_6p': ('Nexus 6P', 2560, 1440, 514, 3.5),     'phone_samsung_galaxy_note_4': ('Samsung Galaxy Note 4',                                     2560, 1440, 514, 3.0),     'phone_samsung_galaxy_s5': ('Samsung Galaxy S5', 1920, 1080, 372, 3.0),     'phone_samsung_galaxy_s6': ('Samsung Galaxy S6', 2560, 1440, 576, 4.0),     'phone_sony_xperia_c4': ('Sony Xperia C4', 1920, 1080, 400, 2.0),     'phone_sony_xperia_z_ultra': ('Sony Xperia Z Ultra', 1920, 1080, 348, 2.0),     'phone_sony_xperia_z1_compact': ('Sony Xperia Z1 Compact',                                      1280, 720, 342, 2.0),     'phone_sony_xperia_z2z3': ('Sony Xperia Z2\/Z3', 1920, 1080, 432, 3.0),     'phone_sony_xperia_z3_compact': ('Sony Xperia Z3 Compact',                                      1280, 720, 313, 2.0),     'tablet_dell_venue_8': ('Dell Venue 8', 2560, 1600, 355, 2.0),     'tablet_ipad': ('iPad', 1024, 768, 132, 1.0),     'tablet_ipad_mini': ('iPad Mini', 1024, 768, 163, 1.0),     'tablet_ipad_mini_retina': ('iPad Mini Retina', 2048, 1536, 326, 2.0),     'tablet_ipad_pro': ('iPad Pro', 2732, 2048, 265, 2.0),     'tablet_ipad_retina': ('iPad Retina', 2048, 1536, 264, 2.0),     'tablet_nexus_10': ('Nexus 10', 2560, 1600, 297, 2.0),     'tablet_nexus_7_12': ('Nexus 7 12', 1280, 800, 216, 1.3),     'tablet_nexus_7_13': ('Nexus 7 13', 1920, 1200, 324, 2.0),     'tablet_nexus_9': ('Nexus 9', 2048, 1536, 288, 2.0),     'tablet_samsung_galaxy_tab_10': ('Samsung Galaxy Tab 10',                                      1280, 800, 148, 1.0),     'tablet_sony_xperia_z3_tablet': ('Sony Xperia Z3 Tablet',                                      1920, 1200, 282, 2.0),     'tablet_sony_xperia_z4_tablet': ('Sony Xperia Z4 Tablet',                                      2560, 1600, 297, 2.0)TodoList()         app.run()  } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041d\u0443, \u0438, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u2014 \u0437\u0430\u043f\u0443\u0441\u043a \u043d\u0430 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435\u2026 <\/p>\n<div class=\"oembed\">\n<div>\n<div style=\"left: 0; width: 100%; height: 0; position: relative; padding-bottom: 56.2493%;\"><iframe src=\"https:\/\/www.youtube.com\/embed\/hA7tufEl8sg?rel=0&amp;showinfo=1&amp;hl=en-US\" style=\"border: 0; top: 0; left: 0; width: 100%; height: 100%; position: absolute;\" allowfullscreen scrolling=\"no\"><\/iframe><\/div>\n<\/div>\n<\/div>\n<p>  \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0442\u043e \u043e\u0433\u043e\u0440\u0447\u0430\u0435\u0442, \u044d\u0442\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430. \u0423 \u0442\u043e\u0433\u043e \u0436\u0435 Flutter \u043e\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0444\u0435\u043d\u043e\u043c\u0435\u043d\u0430\u043b\u044c\u043d\u0430\u044f! <\/p>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c, \u0431\u044b\u043b \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043b\u0435\u0437\u0435\u043d, \u0434\u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0441\u0442\u0440\u0435\u0447!<\/p><\/div>\n<p>               <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d() } } }t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>      <br \/> \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\/480018\/\"> https:\/\/habr.com\/ru\/post\/480018\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html js-mediator-article\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/480018\/\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/fh\/yv\/k9\/fhyvk9mm5z44tjjfhwxj3nl2vxq.jpeg\"><\/div>\n<p>  \u041f\u0440\u0438\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e! \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0440\u0435\u0447\u044c \u0441\u043d\u043e\u0432\u0430 \u043f\u043e\u0439\u0434\u0435\u0442 \u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 <a href=\"https:\/\/github.com\/HeaTTheatR\/KivyMD\" rel=\"nofollow\">KivyMD<\/a> \u2014 \u043d\u0430\u0431\u043e\u0440\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432 \u0434\u043b\u044f \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 Python \u0432 \u0441\u0442\u0438\u043b\u0435 Material Design. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0441\u0434\u0435\u043b\u0430\u044e \u043d\u0435 \u043e\u0431\u0437\u043e\u0440 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432 KivyMD, \u043a\u0430\u043a \u0432 <a href=\"https:\/\/habr.com\/ru\/post\/479126\/\">\u043d\u0435\u0434\u0430\u0432\u043d\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0435<\/a>, \u0430, \u0441\u043a\u043e\u0440\u0435\u0435, \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u0431\u043e\u043b\u044c\u0448\u0435 \u043e \u043f\u043e\u0437\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432. \u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435\u0433\u043e \u043d\u0430 \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b \u043f\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 Python \u0434\u043b\u044f \u043d\u043e\u0432\u0438\u0447\u043a\u043e\u0432 \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442, \u0442\u0430\u043a \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0441\u043b\u044b\u0448\u0438\u0442\u0435 \u043e \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0435 Kivy, \u0432\u0440\u044f\u0434 \u043b\u0438 \u0432\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u0432\u0441\u0435 \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e. \u041d\u0443, \u0430 \u043c\u044b \u043f\u043e\u0433\u043d\u0430\u043b\u0438 \u043f\u043e\u0434 \u043a\u0430\u0442!<\/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-295691","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/295691","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=295691"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/295691\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=295691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=295691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=295691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}