{"id":201930,"date":"2013-11-13T07:50:02","date_gmt":"2013-11-13T03:50:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=201930"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=201930","title":{"rendered":"<span class=\"post_title\">\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f WxPython \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u043e\u0434\u043e\u0432\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430. \u0427\u0430\u0441\u0442\u044c 5: \u0421\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u043d\u043e\u0434\u044b<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041c\u0435\u0434\u043b\u0435\u043d\u043d\u043e, \u043d\u043e \u0432\u0435\u0440\u043d\u043e, \u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0435\u0440\u0438\u044e \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u043e\u0432 \u043e WxPython, \u0433\u0434\u0435 \u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0444\u0435\u0440\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u043e\u0434\u043e\u0432\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0441 \u043d\u0443\u043b\u044f \u0438 \u0434\u043e \u0447\u0435\u0433\u043e-\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e. \u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0447\u0430\u0441\u0442\u044f\u0445 \u0443\u0436\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043d\u043e \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0434\u044b, \u0432 \u044d\u0442\u043e\u0439 \u0436\u0435 \u0447\u0430\u0441\u0442\u0438, \u043c\u044b \u0438\u0445 \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c, \u0430 \u043d\u0430 \u044d\u0442\u043e\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/ab9\/65a\/1f5\/ab965a1f5af139f2011ff967da0e7d7b.png\"\/><br \/>  \u0415\u0449\u0435 \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e, \u043d\u043e \u0443\u0436\u0435 \u0432\u044b\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0442\u043e-\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0435 \u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0435.<\/p>\n<p>  \u041f\u0440\u043e\u0448\u043b\u044b\u0435 \u0447\u0430\u0441\u0442\u0438 \u0436\u0438\u0432\u0443\u0442 \u0442\u0443\u0442:<br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/201336\/\">\u0427\u0430\u0441\u0442\u044c 1: \u0423\u0447\u0438\u043c\u0441\u044f \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/201538\/\">\u0427\u0430\u0441\u0442\u044c 2: \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043c\u044b\u0448\u0438<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/201608\/\">\u0427\u0430\u0441\u0442\u044c 3: \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0444\u0438\u0447\u0438 + \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/201784\/\">\u0427\u0430\u0441\u0442\u044c 4: \u0420\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c Drag&#038;Drop<\/a><\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<h4>13. \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u0412 \u043f\u043e\u0433\u043e\u043d\u0435 \u0437\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u043c\u0438 \u043d\u043e\u0434, \u043c\u044b \u043d\u0430\u0447\u043d\u0435\u043c \u0441 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u0430, \u043a\u043b\u0430\u0441\u0441\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u043c \u0432\u0438\u0434\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"python\">class Connection(CanvasObject):     def __init__(self, source, destination, **kwargs):         super(Connection, self).__init__(**kwargs)          self.source = source         self.destination = destination      def Render(self, gc):         gc.SetPen(wx.Pen('#000000', 1, wx.SOLID))         gc.DrawLines([self.source.position, self.destination.position])      def RenderHighlighting(self, gc):         return      def ReturnObjectUnderCursor(self, pos):         return None <\/code><\/pre>\n<p>  \u0412\u0441\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0439 \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0438 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0438\u0441\u0443\u0435\u043c \u043b\u0438\u043d\u0438\u044e \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u0437\u0438\u0446\u0438\u044f\u043c\u0438 \u044d\u0442\u0438\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. \u0412\u043c\u0435\u0441\u0442\u043e \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043f\u043e\u043a\u0430 \u0437\u0430\u0433\u043b\u0443\u0448\u043a\u0438.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u043c \u043d\u0430\u0434\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u043d\u043e\u0434. \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u044b\u043c: \u0443\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044f Shift, \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u0442 \u043d\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u0443\u044e \u043d\u043e\u0434\u0443 \u0438 \u0442\u044f\u043d\u0435\u0442 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u043a \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439. \u0414\u043b\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u044b \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043e\u0431\u044a\u0435\u043a\u0442 \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043d\u0435\u0433\u043e, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0432 \u00abOnMouseLeftDown\u00bb \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:  <\/p>\n<pre><code class=\"python\">        if evt.ShiftDown() and self._objectUnderCursor.connectableSource:             self._connectionStartObject = self._objectUnderCursor <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u043e\u0442\u043f\u0443\u0441\u043a\u0430\u043d\u0438\u0438 \u0436\u0435 \u043a\u043d\u043e\u043f\u043a\u0438, \u043c\u044b \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u044a\u0435\u043a\u0442 \u043f\u043e\u0434 \u043a\u0443\u0440\u0441\u043e\u0440\u043e\u043c \u043c\u043e\u0433 \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0438\u043c \u0438\u0445, \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u0445\u043e\u0440\u043e\u0448\u043e. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u00abOnMouseLeftUp\u00bb \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u043a\u043e\u0434:  <\/p>\n<pre><code class=\"python\">        if (self._connectionStartObject                  and self._objectUnderCursor                  and self._connectionStartObject != self._objectUnderCursor                  and self._objectUnderCursor.connectableDestination):             self.ConnectNodes(self._connectionStartObject, self._objectUnderCursor) <\/code><\/pre>\n<p>  \u041c\u0435\u0442\u043e\u0434 \u00abConnectNodes\u00bb \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0438 \u0435\u0433\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0435\u0439 \u0432 \u043e\u0431\u0435\u0438\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c\u044b\u0445 \u043d\u043e\u0434\u0430\u0445:  <\/p>\n<pre><code class=\"python\">    def ConnectNodes(self, source, destination):         newConnection = Connection(source, destination)         self._connectionStartObject.AddOutcomingConnection(newConnection)         self._objectUnderCursor.AddIncomingConnection(newConnection) <\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u043d\u0430\u0443\u0447\u0438\u0442\u044c \u043d\u043e\u0434\u044b \u0431\u044b\u0442\u044c \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c\u044b\u043c\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0432\u0432\u0435\u0434\u0435\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u0434\u0430 \u043d\u0435 \u043e\u0434\u0438\u043d, \u0430 \u0446\u0435\u043b\u044b\u0445 3. \u00abConnectableObject\u00bb \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0449\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u0434\u043b\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d \u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u043c\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u043e\u0447\u043a\u0443 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0438 \u0446\u0435\u043d\u0442\u0440 \u043d\u043e\u0434\u044b (\u0447\u0443\u0442\u044c \u043f\u043e\u0437\u0436\u0435, \u043c\u044b \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c).  <\/p>\n<pre><code class=\"python\">class ConnectableObject(CanvasObject):     def __init__(self, **kwargs):         super(ConnectableObject, self).__init__(**kwargs)      def GetConnectionPortForTargetPoint(self, targetPoint):         &quot;&quot;&quot;         GetConnectionPortForTargetPoint method should return an end          point position for a connection object.         &quot;&quot;&quot;         raise NotImplementedError()          def GetCenter(self):         &quot;&quot;&quot;         GetCenter method should return a center of this object.          It is used during a connection process as a preview of a future connection.         &quot;&quot;&quot;         raise NotImplementedError() <\/code><\/pre>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043c\u044b \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u044e\u0435\u043c \u043e\u0442 \u00abConnectableObject\u00bb \u0434\u0432\u0430 \u043a\u043b\u0430\u0441\u0441 \u0434\u043b\u044f \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0434\u043b\u044f \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0438 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439:  <\/p>\n<pre><code class=\"python\">class ConnectableDestination(ConnectableObject):     def __init__(self, **kwargs):         super(ConnectableDestination, self).__init__(**kwargs)         self.connectableDestination = True                  self._incomingConnections = []              def AddIncomingConnection(self, connection):         self._incomingConnections.append(connection)              def DeleteIncomingConnection(self, connection):         self._incomingConnections.remove(connection)   class ConnectableSource(ConnectableObject):     def __init__(self, **kwargs):         super(ConnectableSource, self).__init__(**kwargs)         self.connectableSource = True                  self._outcomingConnections = []              def AddOutcomingConnection(self, connection):         self._outcomingConnections.append(connection)          def DeleteOutcomingConnection(self, connection):         self._outcomingConnections.remove(connection)              def GetOutcomingConnections(self):         return self._outcomingConnections <\/code><\/pre>\n<p>  \u041e\u0431\u0430 \u044d\u0442\u0438 \u043a\u043b\u0430\u0441\u0441\u0430 \u0432\u0435\u0441\u044c\u043c\u0430 \u043f\u043e\u0445\u043e\u0436\u0438 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u043f\u0438\u0441\u043a\u0438 \u0432\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0438 \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u041f\u043b\u044e\u0441 \u043e\u043d\u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e\u0442 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0444\u043b\u0430\u0433\u0438, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u043d\u0432\u0430\u0441 \u0437\u043d\u0430\u043b \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0439-\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d.<\/p>\n<p>  \u041e\u0441\u0442\u0430\u043b\u0441\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0448\u0430\u0433: \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448\u0443 \u043d\u043e\u0434\u0443, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0432 \u0435\u0435 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0438 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u043a\u043b\u0430\u0441\u0441\u044b \u0438 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u0430. \u0421 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u043e\u043c \u0432\u0441\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u043c\u043e\u0436\u043d\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043d\u043e\u0434\u044b \u0432 \u043a\u0430\u043d\u0432\u0430\u0441\u0435 \u0438 \u0442\u0430\u043c \u0436\u0435 \u0438\u0445 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c, \u0430 \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0437\u043b\u043e\u0436\u0438\u0442\u044c \u044d\u0442\u0443 \u0437\u0430\u0434\u0430\u0447\u0443 \u043d\u0430 \u043d\u043e\u0434\u0443 \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0435\u0435 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f. \u042d\u0442\u043e \u043c\u044b \u0438 \u0441\u0434\u0435\u043b\u0430\u0435\u043c, \u0434\u043e\u0431\u0430\u0432\u0438\u0432 \u0432 \u043a\u043e\u0434 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433 \u043d\u043e\u0434\u044b \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434:  <\/p>\n<pre><code class=\"python\">        for connection in self.GetOutcomingConnections():             connection.Render(gc) <\/code><\/pre>\n<p>  \u0418\u0442\u0430\u043a, \u0435\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u043e \u0434\u0435\u043b\u043e \u0438 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0438\u0433\u0440\u0430\u0442\u044c\u0441\u044f, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0432\u0440\u043e\u0434\u0435 \u044d\u0442\u043e\u0433\u043e:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/3f0\/b8b\/00c\/3f0b8b00c8dde521bf2a901e2806a75b.png\"\/><br \/>  \u041d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043a\u0440\u0430\u0441\u0438\u0432\u043e, \u043d\u043e \u0443\u0436\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e:) \u0422\u0435\u043a\u0443\u0449\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043a\u043e\u0434\u0430 \u0436\u0438\u0432\u0435\u0442 <a href=\"https:\/\/github.com\/Akson\/MoveMe\/tree\/a5166352fb03af271f6372613640ea8c6e457f48\">\u0442\u0443\u0442<\/a>.<\/p>\n<h4>14. \u0414\u0435\u043b\u0430\u0435\u043c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438<\/h4>\n<p>  \u041b\u0438\u043d\u0438\u0438, \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0449\u0438\u0435 \u0443\u0433\u043b\u044b \u043d\u043e\u0434 \u2014 \u044d\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430, \u043d\u043e \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u0438 \u044d\u0441\u0442\u0435\u0442\u0438\u0447\u043d\u043e. \u041d\u0443 \u0434\u0430 \u043d\u0435 \u0441\u0442\u0440\u0430\u0448\u043d\u043e, \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043a\u0440\u0430\u0441\u0438\u0432\u044b\u0435 \u0438 \u044d\u0441\u0442\u0435\u0442\u0438\u0447\u043d\u044b\u0435 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434 \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0431\u044b\u0441\u0442\u0440\u0435\u043d\u044c\u043a\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043b, \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0432 \u0448\u043a\u043e\u043b\u044c\u043d\u0443\u044e \u0433\u0435\u043e\u043c\u0435\u0442\u0440\u0438\u044e \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e NumPy:  <\/p>\n<pre><code class=\"python\">    def RenderArrow(self, gc, sourcePoint, destinationPoint):         gc.DrawLines([sourcePoint, destinationPoint])                  #Draw arrow         p0 = np.array(sourcePoint)         p1 = np.array(destinationPoint)         dp = p0-p1         l = np.linalg.norm(dp)         dp = dp \/ l         n = np.array([-dp[1], dp[0]])         neck = p1 + self.arrowLength*dp         lp = neck + n*self.arrowWidth         rp = neck - n*self.arrowWidth                  gc.DrawLines([lp, destinationPoint])         gc.DrawLines([rp, destinationPoint]) <\/code><\/pre>\n<p>  \u041c\u044b \u0442\u0443\u0442 \u043e\u0442\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u00abself.arrowLength\u00bb \u043e\u0442 \u043a\u043e\u043d\u0446\u0430 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438 \u043a \u043d\u0430\u0447\u0430\u043b\u0443 \u0438 \u0437\u0430\u0442\u0435\u043c \u0434\u0432\u0438\u0433\u0430\u0435\u043c\u0441\u044f \u0432 \u043e\u0431\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u0438 \u043d\u0430 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u00abself.arrowWidth\u00bb. \u0422\u0430\u043a \u043c\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0442\u043e\u0447\u043a\u0438 \u043a\u043e\u043d\u0446\u043e\u0432 \u043e\u0442\u0440\u0435\u0437\u043a\u043e\u0432, \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u044e\u0449\u0438\u0445 \u043a\u043e\u043d\u0435\u0446 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438 \u0441\u2026 \u043d\u0435 \u0437\u043d\u0430\u044e \u043a\u0430\u043a \u044d\u0442\u043e \u043d\u0430\u0437\u0432\u0430\u0442\u044c, \u0441 \u043a\u043e\u043d\u0446\u0430\u043c\u0438 \u043e\u0441\u0442\u0440\u0438\u044f \u0447\u0442\u043e \u043b\u0438.<br \/>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0432 \u043c\u0435\u0442\u043e\u0434\u0435 \u0440\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433\u0430 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435 \u043b\u0438\u043d\u0438\u0438 \u043d\u0430 \u0440\u0438\u0441\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0438 \u0438 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0435\u0440\u0446\u0430\u0442\u044c \u0442\u0430\u043a\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/8d4\/514\/ae4\/8d4514ae47f2ab7a52bffb6ee926fa1c.png\"\/><br \/>  \u041a\u043e\u0434 \u0436\u0438\u0432\u0435 <a href=\"https:\/\/github.com\/Akson\/MoveMe\/tree\/b90f4b806f71ba515baa4f259d23e2322f740350\">\u0442\u0443\u0442<\/a>.<\/p>\n<h4>15. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 \u043a\u043e\u043d\u0446\u043e\u0432 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439<\/h4>\n<p>  \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0443\u0436\u0435 \u043b\u0443\u0447\u0448\u0435, \u043d\u043e \u0435\u0449\u0435 \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043a\u0440\u0430\u0441\u0438\u0432\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u043a\u043e\u043d\u0446\u044b \u0441\u0442\u0440\u0435\u043b\u043e\u0447\u043a\u0435 \u0431\u043e\u043b\u0442\u0430\u044e\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0433\u0434\u0435. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043c\u044b \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c \u043a\u043b\u0430\u0441\u0441 \u043d\u0430\u0448\u0435\u0433\u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u0431\u043e\u043b\u0435\u0435 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u043c \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0442\u0443\u0434\u0430 \u043c\u0435\u0442\u043e\u0434\u044b \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0442\u043e\u0447\u0435\u043a \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f:  <\/p>\n<pre><code class=\"python\">    def SourcePoint(self):         return np.array(self.source.GetConnectionPortForTargetPoint(self.destination.GetCenter()))          def DestinationPoint(self):         return np.array(self.destination.GetConnectionPortForTargetPoint(self.source.GetCenter())) <\/code><\/pre>\n<p>  \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043c\u044b \u043f\u0440\u043e\u0441\u0438\u043c \u043a\u0430\u0436\u0434\u0443\u044e \u043d\u043e\u0434\u0443 \u0443\u043a\u0430\u0437\u0430\u0442\u044c, \u043e\u0442\u043a\u0443\u0434\u0430 \u0441\u0442\u043e\u0438\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u044f \u0435\u0439 \u0446\u0435\u043d\u0442\u0440 \u043f\u0440\u043e\u0442\u0438\u0432\u043e\u043f\u043e\u043b\u043e\u0436\u043d\u043e\u0439 \u043d\u043e\u0434\u044b \u043a\u0430\u043a \u0434\u0440\u0443\u0433\u043e\u0439 \u043a\u043e\u043d\u0435\u0446. \u042d\u0442\u043e \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0438 \u043d\u0435 \u0441\u0430\u043c\u044b\u0439 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431, \u043d\u043e \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0439\u0434\u0435\u0442. \u0420\u0435\u043d\u0434\u0435\u0440\u0438\u043d\u0433 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0442\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"python\">    def Render(self, gc):         gc.SetPen(wx.Pen('#000000', 1, wx.SOLID))         self.RenderArrow(gc, self.SourcePoint(), self.DestinationPoint()) <\/code><\/pre>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u043e\u0434 \u00abGetConnectionPortForTargetPoint\u00bb \u0443 \u043d\u043e\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u0442\u044c \u0442\u043e\u0447\u043a\u0443 \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0435 \u043d\u043e\u0434\u044b, \u043e\u0442\u043a\u0443\u0434\u0430 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435. \u0414\u043b\u044f \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u0431\u0435\u0437 \u0443\u0447\u0435\u0442\u0430 \u0437\u0430\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u043d\u044b\u0445 \u0443\u0433\u043b\u043e\u0432, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u043c\u0435\u0442\u043e\u0434:  <\/p>\n<pre><code class=\"python\">    def GetConnectionPortForTargetPoint(self, targetPoint):         targetPoint = np.array(targetPoint)         center = np.array(self.GetCenter())         direction = targetPoint - center                  if direction[0] &gt; 0:             #Check right border             borderX = self.position[0] + self.boundingBoxDimensions[0]          else:             #Check left border             borderX = self.position[0]         if direction[0] == 0:             t1 = float(&quot;inf&quot;)         else:             t1 = (borderX - center[0]) \/ direction[0]                            if direction[1] &gt; 0:             #Check bottom border             borderY = self.position[1] + self.boundingBoxDimensions[1]          else:             #Check top border             borderY = self.position[1]         if direction[1] == 0:              t2 = float(&quot;inf&quot;)         else:             t2 = (borderY - center[1]) \/ direction[1]                  t = min(t1, t2)         boundaryPoint = center + t*direction          return boundaryPoint <\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u043c\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u043c \u0431\u043f\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u043f\u0435\u0440\u0435\u0441\u0435\u0447\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043b\u0443\u0447\u043e\u043c, \u0432\u044b\u0445\u043e\u0434\u044f\u0449\u0438\u043c \u0438\u0437 \u0446\u0435\u043d\u0442\u0440\u0430 \u043d\u043e\u0434\u044b \u0432 \u0442\u043e\u0447\u043a\u0443 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0438 \u0441\u0442\u043e\u0440\u043e\u043d\u0430\u043c\u0438 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430. \u042d\u0442\u0430\u043a \u0442\u043e\u0447\u043a\u0430 \u043b\u0435\u0436\u0438\u0442 \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u0438\u043a\u0430 \u0438, \u0432 \u0446\u0435\u043b\u043e\u043c, \u043d\u0430\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442. \u0422\u0430\u043a \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0442\u0430\u043a\u043e\u0435:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/c96\/8c9\/af0\/c968c9af01dfd73fc9f9fc364864265c.png\"\/><br \/>  \u0418\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e, \u043f\u043e\u0445\u043e\u0436\u0435\u0435 \u043d\u0430 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u043e\u0439 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u044e \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0439 \u043d\u043e\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u0436\u0435 \u0431\u043b\u0438\u0437\u043a\u0430 \u043a \u0447\u0435\u043c\u0443-\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u043c\u0443.<\/p>\n<p>  \u041a\u043e\u0434 \u0436\u0438\u0432\u0435\u0442 \u0432 <a href=\"https:\/\/github.com\/Akson\/MoveMe\/tree\/4b35c8834647102d016ffd76af3075d91d08ca27\">\u0442\u0443\u0442<\/a>.<\/p>\n<p>  PS: \u041e\u0431 \u043e\u043f\u0435\u0447\u0430\u0442\u043a\u0430\u0445 \u043f\u0438\u0448\u0438\u0442\u0435 \u0432 \u043b\u0438\u0447\u043a\u0443.    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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=\"http:\/\/habrahabr.ru\/post\/201930\/\"> http:\/\/habrahabr.ru\/post\/201930\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041c\u0435\u0434\u043b\u0435\u043d\u043d\u043e, \u043d\u043e \u0432\u0435\u0440\u043d\u043e, \u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u044e \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0435\u0440\u0438\u044e \u0442\u0443\u0442\u043e\u0440\u0438\u0430\u043b\u043e\u0432 \u043e WxPython, \u0433\u0434\u0435 \u044f \u0445\u043e\u0447\u0443 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0444\u0435\u0440\u0439\u043c\u0432\u043e\u0440\u043a\u0430 \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u043e\u0434\u043e\u0432\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0441 \u043d\u0443\u043b\u044f \u0438 \u0434\u043e \u0447\u0435\u0433\u043e-\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e. \u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0445 \u0447\u0430\u0441\u0442\u044f\u0445 \u0443\u0436\u0435 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u043d\u043e \u043a\u0430\u043a \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u043d\u043e\u0434\u044b, \u0432 \u044d\u0442\u043e\u0439 \u0436\u0435 \u0447\u0430\u0441\u0442\u0438, \u043c\u044b \u0438\u0445 \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0442\u044c, \u0430 \u043d\u0430 \u044d\u0442\u043e\u0439 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c:<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/ab9\/65a\/1f5\/ab965a1f5af139f2011ff967da0e7d7b.png\"\/><br \/>  \u0415\u0449\u0435 \u043d\u0435 \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e, \u043d\u043e \u0443\u0436\u0435 \u0432\u044b\u0440\u0438\u0441\u043e\u0432\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0442\u043e-\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0435 \u0438 \u0440\u0430\u0431\u043e\u0447\u0435\u0435.<\/p>\n<p>  \u041f\u0440\u043e\u0448\u043b\u044b\u0435 \u0447\u0430\u0441\u0442\u0438 \u0436\u0438\u0432\u0443\u0442 \u0442\u0443\u0442:<br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/201336\/\">\u0427\u0430\u0441\u0442\u044c 1: \u0423\u0447\u0438\u043c\u0441\u044f \u0440\u0438\u0441\u043e\u0432\u0430\u0442\u044c<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/201538\/\">\u0427\u0430\u0441\u0442\u044c 2: \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043c\u044b\u0448\u0438<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/201608\/\">\u0427\u0430\u0441\u0442\u044c 3: \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0444\u0438\u0447\u0438 + \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b<\/a><br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/201784\/\">\u0427\u0430\u0441\u0442\u044c 4: \u0420\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u043c Drag&#038;Drop<\/a><\/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-201930","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/201930","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=201930"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/201930\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=201930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=201930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=201930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}