[Mumps2Py:] [179] fixed the busy wait cursor. |
[ Thread Index |
Date Index
| More lists.mumps2py.org/discuss Archives
]
Revision: 179
Author: pgallot
Date: 2008-03-18 02:40:19 +0100 (Tue, 18 Mar 2008)
Log Message:
-----------
fixed the busy wait cursor.
Modified Paths:
--------------
trunk/mumps2py_ui.pyw
Modified: trunk/mumps2py_ui.pyw
===================================================================
--- trunk/mumps2py_ui.pyw 2008-03-16 16:57:37 UTC (rev 178)
+++ trunk/mumps2py_ui.pyw 2008-03-18 01:40:19 UTC (rev 179)
@@ -101,12 +101,17 @@
def busy(self, busy_state = True):
""" sets a wait cursor """
if busy_state:
- self.root.config(cursor="watch")
- self.root.update_idletasks()
+ busy = "watch"
else:
- self.root.config(cursor="")
+ busy = ""
+ child_list = [self.root, ]
+ for child_widget in child_list:
+ child_list.extend(child_widget.winfo_children())
+ child_widget.config(cursor = busy)
+ self.root.update_idletasks()
+
class Mumps2pyUI(GenericUI):
"""The class which provides the User Interface to Mumps2Py"""
def __init__(self, my_root):