Changeset 4176

Show
Ignore:
Timestamp:
06/24/08 08:13:31 (2 months ago)
Author:
ed
Message:

Update the dialogs to use CancelOnEscape? instead of ReleaseOnEscape?. Also set the minimum value for the slot count in the sizer dialogs to 1.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ide/ClassDesigner.py

    r4145 r4176  
    33403340                hsz = dui.dSizer("h") 
    33413341                lbl = dui.dLabel(self, Caption=_("Number of Slots:")) 
    3342                 txt = dui.dSpinner(self, RegID="slotcount", Value=defaultSlotCount
     3342                txt = dui.dSpinner(self, RegID="slotcount", Value=defaultSlotCount, Min=1
    33433343                hsz.append(lbl, halign="right") 
    33443344                hsz.appendSpacer(4) 
  • trunk/ide/ClassDesignerFormMixin.py

    r4157 r4176  
    14731473            ret["AutoSize"] = {"type" : bool, "readonly" : False} 
    14741474            ret["Centered"] = {"type" : bool, "readonly" : False} 
    1475             ret["ReleaseOnEscape"] = {"type" : bool, "readonly" : False} 
     1475            if isinstance(self, dabo.ui.dStandardButtonDialog): 
     1476                ret["CancelOnEscape"] = {"type" : bool, "readonly" : False} 
    14761477        return ret 
    14771478