[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/forms/src GFDisplayHandler.py
From: |
Jason Cater |
Subject: |
gnue/forms/src GFDisplayHandler.py |
Date: |
Mon, 04 Mar 2002 16:23:30 -0500 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Jason Cater <address@hidden> 02/03/04 16:23:29
Modified files:
forms/src : GFDisplayHandler.py
Log message:
fixes to checkboxes
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/forms/src/GFDisplayHandler.py.diff?tr1=1.15&tr2=1.16&r1=text&r2=text
Patches:
Index: gnue/forms/src/GFDisplayHandler.py
diff -c gnue/forms/src/GFDisplayHandler.py:1.15
gnue/forms/src/GFDisplayHandler.py:1.16
*** gnue/forms/src/GFDisplayHandler.py:1.15 Thu Feb 28 22:13:51 2002
--- gnue/forms/src/GFDisplayHandler.py Mon Mar 4 16:23:29 2002
***************
*** 720,726 ****
# TODO: Replace with format mask
def _buildDisplayHelper(self, value, editing):
! return value
def getDisplay(self):
--- 720,732 ----
# TODO: Replace with format mask
def _buildDisplayHelper(self, value, editing):
!
! if ("%s" % value)[:1] in self.trueValues:
! return 1
! elif ("%s" % value)[:1] in self.falseValues:
! return 0
! else:
! return value and 1 or 0
def getDisplay(self):
***************
*** 729,733 ****
--- 735,844 ----
def toggle(self, event):
self.setValue(event.data[1])
+
+
+ def beginEdit(self, event):
+
+ self.editing = 1
+ self.modified = 0
+
+ # TODO: Replace with formatter
+ self.setValue(self.entry.getValue())
+
+ self.work = self.value
+
+ self._buildDisplay()
+
+ self.cursor = 0
+
+
+ # Delete backwards one character
+ def backspace(self, event):
+ return
+
+ # Delete forward one character
+ def delete(self, event):
+ return
+
+ def moveCursorRelative(self, relative):
+ return
+
+
+ def moveCursor(self, event, selecting=0):
+ return
+
+
+ def moveCursorLeft(self, event, selecting=0):
+ return
+
+
+ def moveCursorRight(self, event, selecting=0):
+ return
+
+
+ def moveCursorToEnd(self, event, selecting=0):
+ return
+
+
+ def moveCursorToBegin(self, event, selecting=0):
+ return
+
+
+ #####################
+ #
+ # Selection stuff
+ #
+
+ # Set the selection area
+ def setSelectionArea(self, cursor1, cursor2):
+ return
+
+
+ # Return the selected area as a tuple (or
+ # None if no selection)
+ def getSelectionArea(self):
+ return
+
+
+ # Select the entire text of the entry and move
+ # the cursor to the end
+ def selectAll(self, event):
+ return
+
+
+ # Move the selection cursor to the left one unit
+ def selectLeft(self, event):
+ return
+
+
+ # Move the selection cursor to the right one unit
+ def selectRight(self, event):
+ return
+
+
+ # Select to the beginning of the entry
+ def selectToBegin(self, event):
+ return
+
+
+ # Select to the beginning of the entry
+ def selectToEnd(self, event):
+ return
+
+
+ # Copy to the clipboard
+ def clipboardCopy(self, event):
+ return self.work
+
+
+ def clipboardCut(self, event):
+ return self.work
+
+
+ def clipboardPaste(self, event):
+ event.text = self.dispatchEvent(GFEvent('getClipboard'))
+ if event.text != None:
+ self.addText(event)
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gnue/forms/src GFDisplayHandler.py,
Jason Cater <=