Пример #1
0
    def draw(self):
        """I.draw () -> None

        Draws the ImageMap surface and places its picture on it.
        """
        BaseWidget.draw(self)
        rect = self.picture.get_rect()
        rect.center = self.image.get_rect().center
        self.image.blit(self.picture, rect)
Пример #2
0
    def draw (self):
        """I.draw () -> None

        Draws the ImageMap surface and places its picture on it.
        """
        BaseWidget.draw (self)
        rect = self.picture.get_rect ()
        rect.center = self.image.get_rect ().center
        self.image.blit (self.picture, rect)
Пример #3
0
    def draw(self):
        """P.draw () -> None

        Draws the ProgressBar surface and places its text on it.
        """
        BaseWidget.draw(self)
        if self.text:
            sf_text = base.GlobalStyle.engine.draw_string(
                self.text, self.state, self.__class__, self.style)
            rect = sf_text.get_rect()
            rect.center = self.image.get_rect().center
            self.image.blit(sf_text, rect)
Пример #4
0
    def draw (self):
        """P.draw () -> None

        Draws the ProgressBar surface and places its text on it.
        """
        BaseWidget.draw (self)
        if self.text:
            sf_text = base.GlobalStyle.engine.draw_string (self.text,
                                                           self.state,
                                                           self.__class__,
                                                           self.style)
            rect = sf_text.get_rect ()
            rect.center = self.image.get_rect ().center
            self.image.blit (sf_text, rect)
Пример #5
0
    def draw (self):
        """I.draw () -> None

        Draws the ImageLabel surface and places its picture on it.
        """
        BaseWidget.draw (self)

        rect_img = None
        rect_child = None
        rect = self.image.get_rect ()
        
        rect_img = self.picture.get_rect ()
        rect_img.center = rect.center
        rect_img.centery = rect.centery
        self.image.blit (self.picture, rect_img)
Пример #6
0
    def draw(self):
        """I.draw () -> None

        Draws the ImageLabel surface and places its picture on it.
        """
        BaseWidget.draw(self)

        rect_img = None
        rect_child = None
        rect = self.image.get_rect()

        rect_img = self.picture.get_rect()
        rect_img.center = rect.center
        rect_img.centery = rect.centery
        self.image.blit(self.picture, rect_img)