示例#1
0
    def __init__(self, name='unnamed text', text=None, *args, **kwargs):
        Dock.__init__(self, name, *args, **kwargs)

        t = FwMinimalTextEditor()
        if text is not None:
            t.text.setText(text)
        self.addWidget(t)
示例#2
0
    def __init__(self, name='unnamed text', text=None, *args, **kwargs):
        Dock.__init__(self, name, *args, **kwargs)

        t = FwMinimalTextEditor()
        if text is not None:
            t.text.setText(text)
        self.addWidget(t)
示例#3
0
 def __init__(self, name='unnamed table', text=None,
              array=None, *args, **kwargs):
     Dock.__init__(self, name, *args, **kwargs)
     if array is not None:
         t = Table.fromArray(array)
     elif text is not None:
         t = Table.fromText(text)
     else:
         t = Table()
     self.addWidget(t)
示例#4
0
 def __init__(self,
              name='unnamed table',
              text=None,
              array=None,
              *args,
              **kwargs):
     Dock.__init__(self, name, *args, **kwargs)
     if array is not None:
         t = Table.fromArray(array)
     elif text is not None:
         t = Table.fromText(text)
     else:
         t = Table()
     self.addWidget(t)
示例#5
0
 def close(self):
     Dock.close(self)
     # Show text when all docks are closed
     if not self.area.docks:
         self.area.text.show()
示例#6
0
 def close(self):
     Dock.close(self)
     # Show text when all docks are closed
     if not self.area.docks:
         self.area.reset()