16 |
# write to the Free Software Foundation, Inc., 59 Temple Place |
# write to the Free Software Foundation, Inc., 59 Temple Place |
17 |
# - Suite 330, Boston, MA 02111-1307, USA. |
# - Suite 330, Boston, MA 02111-1307, USA. |
18 |
# |
# |
19 |
# Copyright 2000-2002 Free Software Foundation |
# Copyright 2000-2003 Free Software Foundation |
20 |
# |
# |
21 |
# FILE: |
# FILE: |
22 |
# UIWidget.py |
# UIWidget.py |
29 |
# NOTES: |
# NOTES: |
30 |
# |
# |
31 |
|
|
|
#from GFForm import * |
|
|
#from gnue.common import events |
|
|
#from gnue.common.GObjects import * |
|
|
|
|
32 |
class UIWidget: |
class UIWidget: |
33 |
def __init__(self, event): |
def __init__(self, event): |
34 |
|
|
59 |
self.widgets.append(newWidget) |
self.widgets.append(newWidget) |
60 |
|
|
61 |
|
|
62 |
|
# |
63 |
|
# The following functions should be overridden by the widgets |
64 |
|
# in the ui driver. |
65 |
|
# |
66 |
def createWidget(self, event, spacer): |
def createWidget(self, event, spacer): |
67 |
GDebug.printMesg(1,"UI doesn't support %s" % self.__class__) |
GDebug.printMesg(1,"UI doesn't support %s" % self.__class__) |
68 |
|
|
69 |
|
def indexedFocus(self, index): |
70 |
|
pass |
71 |
|
|
72 |
|
def showModal(self): |
73 |
|
pass |
74 |
|
|
75 |
|
def destroy(self): |
76 |
|
pass |
77 |
|
|
78 |
|
def setValue(self, value, index=0, enabled=1): |
79 |
|
pass |
80 |
|
|
81 |
|
def setCursorPosition(self, position, index=0): |
82 |
|
pass |
83 |
|
|
84 |
|
def setSelectedArea(self, selection1, selection2, index=0): |
85 |
|
pass |
86 |
|
|
87 |
|
|