|
Revision 3515, 0.7 kB
(checked in by paul, 1 year ago)
|
Added the ignore and eol-style props to ide, and removed unneeded files.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
# -*- coding: utf-8 -*- |
|---|
| 2 |
import dabo |
|---|
| 3 |
from dabo.dLocalize import _ |
|---|
| 4 |
import dabo.dEvents as dEvents |
|---|
| 5 |
if __name__ == "__main__": |
|---|
| 6 |
dabo.ui.loadUI("wx") |
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
class MethodSheet(dabo.ui.dPanel): |
|---|
| 10 |
def afterInit(self): |
|---|
| 11 |
self._methodList = dabo.ui.dListControl(self, MultipleSelect=False) |
|---|
| 12 |
self._methodList.bindEvent(dEvents.Hit, self.onList) |
|---|
| 13 |
sz = self.Sizer = dabo.ui.dSizer("v") |
|---|
| 14 |
sz.append1x(self._methodList) |
|---|
| 15 |
self._methodList.addColumn(_("Event/Method")) |
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
def onList(self, evt): |
|---|
| 19 |
self.Application.editCode(self._methodList.StringValue) |
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
def _getMethodList(self): |
|---|
| 23 |
return self._methodList |
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
MethodList = property(_getMethodList, None, None, |
|---|
| 27 |
_("Reference to the method list control (dListControl)")) |
|---|
| 28 |
|
|---|