Changeset 3720

Show
Ignore:
Timestamp:
11/19/07 13:53:57 (1 year ago)
Author:
ed
Message:

Disabled the button for creating a new connection in the DE wizard if running on Gtk, since Gtk doesn't allow a modal form to create another modal form.

Files:

Legend:

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

    r3515 r3720  
    4343        btn.bindEvent(dEvents.Hit, self.onFileCreate) 
    4444        gsz.appendItems((lbl, btn)) 
    45          
     45        if self.Application.Platform == "GTK": 
     46            # Gtk does not allow a modal form to invoke another modal form. 
     47            btn.Enabled = False  
     48            btn.Caption = _(" Not available in Gtk ") 
     49            btn.FontSize -=2 
     50            btn.FontItalic = True 
     51 
    4652        sz.append1x(gsz) 
    4753        sz.appendSpacer(1)