[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r8777 - in trunk/gnue-forms/src/uidrivers: _base/widgets curses/w
From: |
reinhard |
Subject: |
[gnue] r8777 - in trunk/gnue-forms/src/uidrivers: _base/widgets curses/widgets gtk2/widgets qt3/widgets win32/widgets wx/widgets wx26/widgets |
Date: |
Thu, 12 Oct 2006 16:35:42 -0500 (CDT) |
Author: reinhard
Date: 2006-10-12 16:35:41 -0500 (Thu, 12 Oct 2006)
New Revision: 8777
Modified:
trunk/gnue-forms/src/uidrivers/_base/widgets/_base.py
trunk/gnue-forms/src/uidrivers/curses/widgets/_base.py
trunk/gnue-forms/src/uidrivers/gtk2/widgets/_base.py
trunk/gnue-forms/src/uidrivers/qt3/widgets/_base.py
trunk/gnue-forms/src/uidrivers/win32/widgets/_base.py
trunk/gnue-forms/src/uidrivers/wx/widgets/_base.py
trunk/gnue-forms/src/uidrivers/wx26/widgets/_base.py
Log:
indexed_focus -> _ui_set_focus_
lose_focus -> _ui_lose_focus_
Modified: trunk/gnue-forms/src/uidrivers/_base/widgets/_base.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/_base/widgets/_base.py 2006-10-12
21:25:37 UTC (rev 8776)
+++ trunk/gnue-forms/src/uidrivers/_base/widgets/_base.py 2006-10-12
21:35:41 UTC (rev 8777)
@@ -324,15 +324,6 @@
def _create_widget_(self, event, spacer):
assert gDebug(1, "UI does not support %s" % self.__class__)
- def _ui_set_focus_(self, index):
- self.indexed_focus(index)
-
- def _ui_lose_focus_(self, index):
- self.lose_focus(index)
-
- def indexed_focus(self, index):
- pass
-
def lose_focus(self, index):
pass
Modified: trunk/gnue-forms/src/uidrivers/curses/widgets/_base.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/curses/widgets/_base.py 2006-10-12
21:25:37 UTC (rev 8776)
+++ trunk/gnue-forms/src/uidrivers/curses/widgets/_base.py 2006-10-12
21:35:41 UTC (rev 8777)
@@ -57,7 +57,7 @@
# Set focus to widget
# ---------------------------------------------------------------------------
- def indexed_focus (self, index):
+ def _ui_set_focus_(self, index):
self._uiDriver._focus_widget = self
self._getFocus (index)
@@ -66,7 +66,7 @@
# Remove focus from widget
# ---------------------------------------------------------------------------
- def lose_focus (self, index):
+ def _ui_lose_focus_(self, index):
self._lose_focus (index)
Modified: trunk/gnue-forms/src/uidrivers/gtk2/widgets/_base.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/gtk2/widgets/_base.py 2006-10-12
21:25:37 UTC (rev 8776)
+++ trunk/gnue-forms/src/uidrivers/gtk2/widgets/_base.py 2006-10-12
21:35:41 UTC (rev 8777)
@@ -189,7 +189,7 @@
# Set the focus to a given widget
# ---------------------------------------------------------------------------
- def indexed_focus (self, index):
+ def _ui_set_focus_ (self, index):
"""
This function set's the focus to the gtk-widget specified by index. If the
widget has a focusHandler it will be blocked and unblocked to prevent a
@@ -233,7 +233,7 @@
# On lose of the focus we un-select ComboBox-Entries
# ---------------------------------------------------------------------------
- def lose_focus (self, index):
+ def _ui_lose_focus_ (self, index):
for widget in self.widgets:
assert gDebug (6, "Lose focus: %s" % widget)
Modified: trunk/gnue-forms/src/uidrivers/qt3/widgets/_base.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/qt3/widgets/_base.py 2006-10-12 21:25:37 UTC
(rev 8776)
+++ trunk/gnue-forms/src/uidrivers/qt3/widgets/_base.py 2006-10-12 21:35:41 UTC
(rev 8777)
@@ -40,7 +40,7 @@
# Set the focus to the given widget
# -------------------------------------------------------------------------
- def indexed_focus(self, index):
+ def _ui_set_focus_(self, index):
"""
Set the focus to the qt widget specified by index. For entries having
no rows the index will always be 0.
@@ -58,7 +58,7 @@
# The focus should move away from a widget
# -------------------------------------------------------------------------
- def lose_focus(self, index):
+ def _ui_lose_focus_(self, index):
"""
Take away the focus of the qt widget with the given index. If this
object is used within a grid, losing the focus means hiding the entry
Modified: trunk/gnue-forms/src/uidrivers/win32/widgets/_base.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/win32/widgets/_base.py 2006-10-12
21:25:37 UTC (rev 8776)
+++ trunk/gnue-forms/src/uidrivers/win32/widgets/_base.py 2006-10-12
21:35:41 UTC (rev 8777)
@@ -695,9 +695,12 @@
self.Destroy()
- def indexed_focus(self, index):
+ def _ui_set_focus_(self, index):
self.widgets[index].SetFocus()
+ def _ui_lose_focus_(self, index):
+ pass
+
def _ui_set_value_(self, index, value):
widget = self.widgets[index]
# Check if foreign key changed
Modified: trunk/gnue-forms/src/uidrivers/wx/widgets/_base.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx/widgets/_base.py 2006-10-12 21:25:37 UTC
(rev 8776)
+++ trunk/gnue-forms/src/uidrivers/wx/widgets/_base.py 2006-10-12 21:35:41 UTC
(rev 8777)
@@ -116,7 +116,7 @@
# --------------------------------------------------------------------------
# Set the focus to a given widget
# --------------------------------------------------------------------------
- def indexed_focus(self, index):
+ def _ui_set_focus_(self, index):
"""
Sets the focus to the wx widget specified by index.
The focused widget will have a highlight color if it is set in gnue.conf.
@@ -141,7 +141,7 @@
# --------------------------------------------------------------------------
# On lose of the focus we un-select ComboBox-Entries
# --------------------------------------------------------------------------
- def lose_focus(self, index):
+ def _ui_lose_focus_(self, index):
"""
Releases focus from the widget that currently had it.
Resets the widget's color to normal if focus highlighting is used.
Modified: trunk/gnue-forms/src/uidrivers/wx26/widgets/_base.py
===================================================================
--- trunk/gnue-forms/src/uidrivers/wx26/widgets/_base.py 2006-10-12
21:25:37 UTC (rev 8776)
+++ trunk/gnue-forms/src/uidrivers/wx26/widgets/_base.py 2006-10-12
21:35:41 UTC (rev 8777)
@@ -109,7 +109,7 @@
# Set the focus to a given widget
# -------------------------------------------------------------------------
- def indexed_focus (self, index):
+ def _ui_set_focus_(self, index):
"""
Set the focus to the wx widget specified by index. For entries having
no rows the index will always be 0.
@@ -142,7 +142,7 @@
# On lose of the focus we un-select ComboBox-Entries
# -------------------------------------------------------------------------
- def lose_focus(self, index):
+ def _ui_lose_focus_(self, index):
"""
Take away the focus of the wx widget with the given index. If this
object is used within a grid, losing the focus means hiding the entry
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r8777 - in trunk/gnue-forms/src/uidrivers: _base/widgets curses/widgets gtk2/widgets qt3/widgets win32/widgets wx/widgets wx26/widgets,
reinhard <=