Exemplo n.º 1
0
Arquivo: label.py Projeto: pybee/toga
    def create(self):
        self.native = UILabel.new()
        self.native.impl = self
        self.native.interface = self

        self.native.lineBreakMode = NSLineBreakByWordWrapping

        # Add the layout constraints
        self.add_constraints()
Exemplo n.º 2
0
    def create(self):
        self.native = UILabel.new()
        self.native.impl = self
        self.native.interface = self

        self.native.lineBreakMode = NSLineBreakByWordWrapping

        # Add the layout constraints
        self.add_constraints()
Exemplo n.º 3
0
    def create(self):
        self.native = UILabel.new()
        self.native.interface = self

        self.native.setTranslatesAutoresizingMaskIntoConstraints_(False)
        self.native.setLineBreakMode_(NSLineBreakByWordWrapping)

        # Add the layout constraints
        self.add_constraints()