Changeset 3256

Show
Ignore:
Timestamp:
07/16/2007 12:38:10 AM (1 year ago)
Author:
paul
Message:

This is a temporary bandaid for some problems lingering from making
dForm truly Modal. It works around a problem that would occur if
you show a form modally, then instantiate a new instance and show
it non-modally, and then show the initial one modally again.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/stable/dabo/ui/uiwx/dForm.py

    r3092 r3256  
    887887        if self._constructed(): 
    888888            val = bool(val) 
    889             if val and self.Modal
     889            if val and self.Modal and hasattr(self, "ShowModal")
    890890                self.ShowModal() 
    891891            else: 
  • trunk/dabo/ui/uiwx/dForm.py

    r3227 r3256  
    887887        if self._constructed(): 
    888888            val = bool(val) 
    889             if val and self.Modal
     889            if val and self.Modal and hasattr(self, "ShowModal")
    890890                self.ShowModal() 
    891891            else: