| Home | Trees | Indices | Help |
|
|---|
|
|
1 #!/usr/bin/python 2 # -*- coding: utf-8 -*- 3 ''' 4 @author: Ricardo Ribeiro 5 @credits: Ricardo Ribeiro 6 @license: MIT 7 @version: 0.0 8 @maintainer: Ricardo Ribeiro 9 @email: ricardojvr@gmail.com 10 @status: Development 11 @lastEditedBy: Carlos Mão de Ferro (carlos.maodeferro@neuro.fchampalimaud.org) 12 ''' 13 14 import pyforms.Utils.tools as tools 15 from PyQt4 import uic 16 from pyforms.gui.Controls.ControlBase import ControlBase20 246826 control_path = tools.getFileInSameDirectory(__file__, "button.ui") 27 self._form = uic.loadUi(control_path) 28 self._form.pushButton.setText(self._label) 29 self._form.pushButton.setCheckable(self._checkable) 30 self.tooltip = None31 33 35 36 ########################################################################## 37 38 @property 41 42 @label.setter 46 47 ########################################################################## 48 49 @property 52 53 @value.setter55 self._form.pushButton.clicked[bool].connect(value)56 57 58 @property60 return self._form.pushButton.isChecked()61 62 @checked.setter64 self._form.pushButton.setChecked(value)6567 self._form.pushButton.click()
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Sep 11 13:06:34 2015 | http://epydoc.sourceforge.net |