コード例 #1
0
    def __init__(self, surface):
        GuiElement.__init__(self, surface)

        self.y = 500
        self.label = TextLabel(self.surface, self.template, self.x, self.y,
                               100)
        self.name, self.size = '', 0
コード例 #2
0
    def __init__(
        self,
        surface,
    ):
        GuiElement.__init__(self, surface)
        x, y = 50, self.surface.height - 50

        with open(self.help_file, 'r') as hfile:
            self.help_text = hfile.read()

        self.label = TextLabel(self.surface, self.text, x, y,
                               self.surface.width)