dabo Commit
Revision 6180
Date: 2010-11-03 15:30:01 -0700 (Wed, 03 Nov 2010)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6180
Changed:
U trunk/dabo/ui/uiwx/dMessageBox.py
Log:
If parent isn't a wx.Frame, there isn't a RequestUserAttention() function.
Diff:
Modified: trunk/dabo/ui/uiwx/dMessageBox.py
===================================================================
--- trunk/dabo/ui/uiwx/dMessageBox.py 2010-10-31 23:07:14 UTC (rev 6179)
+++ trunk/dabo/ui/uiwx/dMessageBox.py 2010-11-03 22:30:01 UTC (rev 6180)
@@ -22,7 +22,7 @@
userAttentionMode=wx.USER_ATTENTION_INFO):
if not parent:
parent = getForm()
- if not wx.GetApp().IsActive() and parent and
requestUserAttention:
+ if not wx.GetApp().IsActive() and isinstance(parent, (wx.Frame,
wx.MDIParentFrame)) and requestUserAttention:
# We only want to send the requestUserAttention to the
OS if our application
# isn't currently the active application. Otherwise it
abuses the intent...
parent.RequestUserAttention(userAttentionMode)
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]