peng3d/gui/menus.py
def add_label_main(self,label_main):
        """
        Adds the main label of the dialog.
        
        This widget can be triggered by setting the label ``label_main`` to a string.
        
        This widget will be centered on the screen.
        """
        # Main Label
        self.wlabel_main = text.Label("label_main",self,self.window,self.peng,
                        pos=lambda sw,sh, bw,bh: (sw/2-bw/2,sh/2-bh/2),
                        size=[0,0],
                        label=label_main,
                        #multiline=True, # TODO: implement multine dialog
                        )
        self.wlabel_main.size = lambda sw,sh: (sw,self.wlabel_main._label.font_size)
        self.addWidget(self.wlabel_main)
def add_label_main(self,label_main):
        """
        Adds the main label of the dialog.
        
        This widget can be triggered by setting the label ``label_main`` to a string.
        
        This widget will be centered on the screen.
        """
        # Main Label
        self.wlabel_main = text.Label("label_main",self,self.window,self.peng,
                        pos=lambda sw,sh, bw,bh: (sw/2-bw/2,sh/2-bh/2),
                        size=[0,0],
                        label=label_main,
                        #multiline=True, # TODO: implement multine dialog
                        )
        self.wlabel_main.size = lambda sw,sh: (sw,self.wlabel_main._label.font_size)
        self.addWidget(self.wlabel_main)
Adds the main label of the dialog.
        
        This widget can be triggered by setting the label ``label_main`` to a string.
        
        This widget will be centered on the screen.