Changeset 295

Show
Ignore:
Timestamp:
05/24/04 17:44:27 (5 years ago)
Author:
paul
Message:

Rename properties dApp and dForm to Application and Form, respectively.
Move the definition of Form out of dObject and into dPemMixin, as
dObject was too low a location (outside of UI).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/common/dObject.py

    r294 r295  
    2020 
    2121         
    22     def _getDApp(self): 
     22    def _getApplication(self): 
    2323        # dApp saves a ref to itself inside the dabo module object. 
    2424        return dabo.dAppRef 
    2525     
    2626     
    27     def _getDForm(self): 
    28         """ Return a reference to the containing dForm.  
    29         """ 
    30         try: 
    31             return self._dFormCached 
    32         except AttributeError: 
    33             import dabo.ui 
    34             obj, frm = self, None 
    35             while obj: 
    36                 parent = obj.GetParent() 
    37                 if isinstance(parent, dabo.ui.dForm): 
    38                     frm = parent 
    39                     break 
    40                 else: 
    41                     obj = parent 
    42             if frm: 
    43                 self._dFormCached = frm   # Cache for next time 
    44             return frm 
    45  
    46  
    4727    def _getClass(self): 
    4828        try: 
     
    8666 
    8767 
    88     dApp = property(_getDApp, None, None,  
     68    Application = property(_getApplication, None, None,  
    8969                    'Object reference to the Dabo Application object. (read only).') 
    90     dForm = property(_getDForm, None, None, 
    91                     'Object reference to the dForm containing the object. (read only).') 
    9270    Name = property(_getName, _setName, None,  
    9371                    'The name of the object. (str)') 
  • trunk/dSecurityManager.py

    r291 r295  
    3232            else: 
    3333                message = _("Please enter your login information.") 
    34             user, password = self.dApp.uiApp.getLoginInfo(message) 
     34            user, password = self.Application.uiApp.getLoginInfo(message) 
    3535 
    3636            if user is None: 
  • trunk/ui/uiwx/classes/dAbout.py

    r190 r295  
    6262</html> 
    6363''' 
    64     def __init__(self, parent, dApp=None): 
     64    def __init__(self, parent, app=None): 
    6565        wx.Dialog.__init__(self, parent, -1, '') 
    6666        html = wx.html.HtmlWindow(self, -1, size=(420, -1)) 
    6767        py_version = sys.version.split()[0] 
    68         if dApp: 
    69             dabo_version = dApp.getAppInfo("appVersion") 
    70             dabo_appName = dApp.getAppInfo("appName") 
     68        if app: 
     69            dabo_version = app.getAppInfo("appVersion") 
     70            dabo_appName = app.getAppInfo("appName") 
    7171        else: 
    7272            dabo_version = "?" 
  • trunk/ui/uiwx/classes/dControlMixin.py

    r294 r295  
    2828        """ 
    2929        try: 
    30             self.dForm.addControl(self) 
     30            self.Form.addControl(self) 
    3131        except AttributeError: 
    3232            # perhaps the form isn't a dForm 
  • trunk/ui/uiwx/classes/dDataControlMixin.py

    r294 r295  
    5252        if not self.bizobj: 
    5353            # Ask the form for the bizobj reference, and cache for next time 
    54             self.bizobj = self.dForm.getBizobj(self.DataSource) 
     54            self.bizobj = self.Form.getBizobj(self.DataSource) 
    5555        return self.bizobj.getFieldVal(self.DataField) 
    5656 
     
    6161        if not self.bizobj: 
    6262            # Ask the form for the bizobj reference, and cache for next time 
    63             self.bizobj = self.dForm.getBizobj(self.DataSource) 
     63            self.bizobj = self.Form.getBizobj(self.DataSource) 
    6464        return self.bizobj.setFieldVal(self.DataField, value) 
    6565 
     
    8686         
    8787        try: 
    88             if self.SelectOnEntry and self.dForm.FindFocus() == self: 
     88            if self.SelectOnEntry and self.Form.FindFocus() == self: 
    8989                self.selectAll() 
    9090        except AttributeError: 
     
    148148        """ 
    149149        try: 
    150             dApp = self.dForm.dApp 
    151         except AttributeError: 
    152             dApp = None 
     150            app = self.Application 
     151        except AttributeError: 
     152            app = None 
    153153 
    154154        # It is too late to get Value directly:      
    155155        value = self._oldVal     
    156156         
    157         if dApp: 
     157        if app: 
    158158            name = self.getAbsoluteName() 
    159             dApp.setUserSetting("%s.Value" % name, self.getShortDataType(value), value) 
     159            app.setUserSetting("%s.Value" % name, self.getShortDataType(value), value) 
    160160         
    161161             
     
    164164        """ 
    165165        try: 
    166             dApp = self.dApp 
    167         except AttributeError: 
    168             dApp = None 
    169              
    170         if dApp: 
     166            app = self.Application 
     167        except AttributeError: 
     168            app = None 
     169             
     170        if app: 
    171171            name = self.getAbsoluteName() 
    172             value = dApp.getUserSetting("%s.Value" % name) 
     172            value = app.getUserSetting("%s.Value" % name) 
    173173 
    174174            try: 
  • trunk/ui/uiwx/classes/dFormDataNav.py

    r288 r295  
    5555        if isinstance(self, wx.MDIChildFrame): 
    5656            # Toolbar will be attached to top-level frame 
    57             controllingFrame = self.dApp.mainFrame 
     57            controllingFrame = self.Application.mainFrame 
    5858        else: 
    5959            # Toolbar will be attached to this frame 
  • trunk/ui/uiwx/classes/dFormMain.py

    r292 r295  
    1616    """ This is the main top-level form for the application. 
    1717    """ 
    18     def __init__(self, dApp=None): 
     18    def __init__(self): 
    1919 
    2020        self._baseClass = dFormMain 
  • trunk/ui/uiwx/classes/dFormMixin.py

    r292 r295  
    1616 
    1717        if self.Parent == wx.GetApp().GetTopWindow(): 
    18             self.dApp.uiForms.add(self) 
     18            self.Application.uiForms.add(self) 
    1919 
    2020        self.restoredSP = False 
    2121 
    22         if self.dApp
     22        if self.Application
    2323            try: 
    2424                self.SetMenuBar(mnb.dMainMenuBar(self)) 
     
    6464    def OnClose(self, event): 
    6565        if self.GetParent() == wx.GetApp().GetTopWindow(): 
    66             self.dApp.uiForms.remove(self) 
     66            self.Application.uiForms.remove(self) 
    6767        self.saveSizeAndPosition() 
    6868        event.Skip() 
     
    8282        and set those properties on this form. 
    8383        """ 
    84         if self.dApp
     84        if self.Application
    8585            name = self.getAbsoluteName() 
    8686 
    87             left = self.dApp.getUserSetting("%s.left" % name) 
    88             top = self.dApp.getUserSetting("%s.top" % name) 
    89             width = self.dApp.getUserSetting("%s.width" % name) 
    90             height = self.dApp.getUserSetting("%s.height" % name) 
     87            left = self.Application.getUserSetting("%s.left" % name) 
     88            top = self.Application.getUserSetting("%s.top" % name) 
     89            width = self.Application.getUserSetting("%s.width" % name) 
     90            height = self.Application.getUserSetting("%s.height" % name) 
    9191 
    9292            if (type(left), type(top)) == (type(int()), type(int())): 
     
    9999        """ Save the current size and position of this form. 
    100100        """ 
    101         if self.dApp
     101        if self.Application
    102102            if self == wx.GetApp().GetTopWindow(): 
    103                 for form in self.dApp.uiForms: 
     103                for form in self.Application.uiForms: 
    104104                    try: 
    105105                        form.saveSizeAndPosition() 
     
    112112            size = self.GetSize() 
    113113 
    114             self.dApp.setUserSetting("%s.left" % name, "I", pos[0]) 
    115             self.dApp.setUserSetting("%s.top" % name, "I", pos[1]) 
    116             self.dApp.setUserSetting("%s.width" % name, "I", size[0]) 
    117             self.dApp.setUserSetting("%s.height" % name, "I", size[1]) 
     114            self.Application.setUserSetting("%s.left" % name, "I", pos[0]) 
     115            self.Application.setUserSetting("%s.top" % name, "I", pos[1]) 
     116            self.Application.setUserSetting("%s.width" % name, "I", size[0]) 
     117            self.Application.setUserSetting("%s.height" % name, "I", size[1]) 
    118118 
    119119 
     
    126126        """ 
    127127        if isinstance(self, wx.MDIChildFrame): 
    128             controllingFrame = self.dApp.mainFrame 
     128            controllingFrame = self.Application.mainFrame 
    129129        else: 
    130130            controllingFrame = self 
     
    140140 
    141141        if isinstance(self, wx.MDIChildFrame): 
    142             controllingFrame = self.dApp.mainFrame 
     142            controllingFrame = self.Application.mainFrame 
    143143        else: 
    144144            controllingFrame = self 
     
    159159 
    160160        if isinstance(self, wx.MDIChildFrame): 
    161             controllingFrame = self.dApp.mainFrame 
     161            controllingFrame = self.Application.mainFrame 
    162162        else: 
    163163            controllingFrame = self 
  • trunk/ui/uiwx/classes/dGridDataNav.py

    r294 r295  
    1616        wx.grid.PyGridTableBase.__init__(self) 
    1717 
    18         self.bizobj = parent.dForm.getBizobj(parent.DataSource)  
     18        self.bizobj = parent.Form.getBizobj(parent.DataSource)  
    1919        self.grid = parent 
    2020 
     
    4343        for column in range(len(self.grid.columnDefs)): 
    4444            if self.grid.columnDefs[column]['showGrid']: 
    45                 order = self.grid.dApp.getUserSetting("%s.%s.%s.%s" % ( 
    46                             self.grid.dForm.Name,  
     45                order = self.grid.Application.getUserSetting("%s.%s.%s.%s" % ( 
     46                            self.grid.Form.Name,  
    4747                            self.grid.Name, 
    4848                            "Column%s" % column, 
     
    129129                fieldType = column['type'] 
    130130 
    131                 width = self.grid.dApp.getUserSetting("%s.%s.%s.%s" % ( 
    132                             self.grid.dForm.Name,  
     131                width = self.grid.Application.getUserSetting("%s.%s.%s.%s" % ( 
     132                            self.grid.Form.Name,  
    133133                            self.grid.GetName(), 
    134134                            colName, 
     
    208208            column = self.grid.columnDefs[relativeColumn] 
    209209            if column['showGrid']: 
    210                 self.grid.dApp.setUserSetting("%s.%s.%s.%s" % ( 
    211                         self.grid.dForm.Name, 
     210                self.grid.Application.setUserSetting("%s.%s.%s.%s" % ( 
     211                        self.grid.Form.Name, 
    212212                        self.grid.Name, 
    213213                        "Column%s" % index, 
     
    298298 
    299299        # Get the default row size from dApp's user settings 
    300         s = self.dApp.getUserSetting("%s.%s.%s" % ( 
    301                         self.dForm.Name,  
     300        s = self.Application.getUserSetting("%s.%s.%s" % ( 
     301                        self.Form.Name,  
    302302                        self.GetName(), 
    303303                        "RowSize")) 
     
    316316        width = self.GetColSize(col) 
    317317 
    318         self.dApp.setUserSetting("%s.%s.%s.%s" % ( 
    319                         self.dForm.Name,  
     318        self.Application.setUserSetting("%s.%s.%s.%s" % ( 
     319                        self.Form.Name,  
    320320                        self.Name, 
    321321                        "Column%s" % self.GetTable().relativeColumns[col], 
     
    333333        if oldRow != newRow: 
    334334            try: 
    335                 self.dForm.getBizobj(self.DataSource).setRowNumber(newRow) 
     335                self.Form.getBizobj(self.DataSource).setRowNumber(newRow) 
    336336            except dException.dException: 
    337337                pass 
    338         self.dForm.refreshControls() 
     338        self.Form.refreshControls() 
    339339        event.Skip() 
    340340 
     
    487487        By default, this is interpreted as a request to edit the record. 
    488488        """ 
    489         if self.dForm.FormType == 'PickList': 
     489        if self.Form.FormType == 'PickList': 
    490490            self.pickRecord() 
    491491        else: 
     
    536536 
    537537        if keyCode == 13:           # Enter 
    538             if self.dForm.FormType == "PickList": 
     538            if self.Form.FormType == "PickList": 
    539539                self.pickRecord() 
    540540            else: 
     
    542542        else: 
    543543            if keyCode == 127:      # Del 
    544                 if self.dForm.FormType != "PickList": 
     544                if self.Form.FormType != "PickList": 
    545545                    self.deleteRecord() 
    546546            elif keyCode == 343:    # F2 
    547547                self.processSort() 
    548             elif keyCode == 27 and self.dForm.FormType == "PickList":  # Esc 
    549                 self.dForm.Close() 
     548            elif keyCode == 27 and self.Form.FormType == "PickList":  # Esc 
     549                self.Form.Close() 
    550550            elif char and (char.isalnum() or char.isspace()) and not evt.HasModifiers(): 
    551551                self.addToIncrementalSearch(char) 
     
    575575        """ The form is a picklist, and the user picked a record. 
    576576        """ 
    577         self.dForm.pickRecord() 
     577        self.Form.pickRecord() 
    578578         
    579579         
     
    601601 
    602602        try: 
    603             self.dForm.getBizobj(self.DataSource).sort(columnToSort, sortOrder) 
     603            self.Form.getBizobj(self.DataSource).sort(columnToSort, sortOrder) 
    604604            self.sortedColumn = gridCol 
    605605            self.sortOrder = sortOrder 
     
    620620        cursorCol = self.GetTable().colNames[gridCol] 
    621621 
    622         row = self.dform.getBizobj(self.DataSource).seek(self.currentIncrementalSearch, cursorCol,  
     622        row = self.Form.getBizobj(self.DataSource).seek(self.currentIncrementalSearch, cursorCol,  
    623623                                caseSensitive=False, near=True) 
    624624 
     
    629629        # Add a '.' to the status bar to signify that the search is 
    630630        # done, and clear the search string for next time. 
    631         self.dForm.setStatusText('Search: %s.' 
     631        self.Form.setStatusText('Search: %s.' 
    632632                % self.currentIncrementalSearch) 
    633633        self.currentIncrementalSearch = '' 
     
    643643 
    644644        self.currentIncrementalSearch = ''.join((self.currentIncrementalSearch, key)) 
    645         self.dForm.setStatusText('Search: %s' 
     645        self.Form.setStatusText('Search: %s' 
    646646                % self.currentIncrementalSearch) 
    647647 
     
    656656        popup = wx.Menu() 
    657657 
    658         if self.dForm.FormType == 'PickList': 
     658        if self.Form.FormType == 'PickList': 
    659659            id_pick = wx.NewId() 
    660660            item = wx.MenuItem(popup, id_pick, "&Pick", "Pick this record") 
     
    697697 
    698698        # Persist the new size 
    699         self.dApp.setUserSetting("%s.%s.%s" % ( 
    700                         self.dForm.Name,  
     699        self.Application.setUserSetting("%s.%s.%s" % ( 
     700                        self.Form.Name,  
    701701                        self.Name, 
    702702                        "RowSize"), "I", size) 
  • trunk/ui/uiwx/classes/dLogin.py

    r292 r295  
    4444    def initProperties(self): 
    4545        dLogin.doDefault() 
    46         if self.dApp
    47             appName = self.dApp.getAppInfo("appName") 
     46        if self.Application
     47            appName = self.Application.getAppInfo("appName") 
    4848        else: 
    4949            appName = '' 
  • trunk/ui/uiwx/classes/dMenu.py

    r232 r295  
    77        if mainFrame: 
    88            self.mainFrame = mainFrame 
    9             self.actionList = mainFrame.dApp.actionList 
     9            self.actionList = mainFrame.Application.actionList 
    1010        dMenu.doDefault() 
  • trunk/ui/uiwx/classes/dPage.py

    r294 r295  
    4747        Subclasses may override. 
    4848        """ 
    49         self.dForm.activeControlValid() 
     49        self.Form.activeControlValid() 
    5050        pass 
    5151 
  • trunk/ui/uiwx/classes/dPageDataNav.py

    r294 r295  
    124124 
    125125    def requery(self): 
    126         bizobj = self.dForm.getBizobj() 
     126        bizobj = self.Form.getBizobj() 
    127127        where = self.getWhere() 
    128128        bizobj.setWhereClause(where) 
     
    142142        bizobj.setSQL(sql) 
    143143 
    144         self.dForm.requery() 
     144        self.Form.requery() 
    145145 
    146146        if self.GetParent().GetSelection() == 0: 
     
    150150 
    151151    def _getSelectOptionsPanel(self): 
    152         dataSource = self.dForm.getBizobj().DataSource 
    153         columnDefs = self.dForm.getColumnDefs(dataSource) 
     152        dataSource = self.Form.getBizobj().DataSource 
     153        columnDefs = self.Form.getColumnDefs(dataSource) 
    154154        panel = SelectOptionsPanel(self) 
    155155         
     
    321321 
    322322    def updateGrid(self): 
    323         bizobj = self.dForm.getBizobj() 
     323        bizobj = self.Form.getBizobj() 
    324324        if bizobj and bizobj.getRowCount() >= 0: 
    325325            if not self.itemsCreated: 
     
    328328                self.fillGrid() 
    329329 
    330             row = self.dForm.getBizobj().getRowNumber() 
     330            row = self.Form.getBizobj().getRowNumber() 
    331331            col = self.BrowseGrid.GetGridCursorCol() 
    332332            self.BrowseGrid.SetGridCursor(row, col) 
     
    340340 
    341341    def createItems(self): 
    342         bizobj = self.dForm.getBizobj() 
     342        bizobj = self.Form.getBizobj() 
    343343        grid = self.addObject(dGridDataNav.dGridDataNav, 'BrowseGrid') 
    344344        grid.DataSource = bizobj.DataSource 
    345345        self.GetSizer().Add(grid, 1, wx.EXPAND) 
    346         grid.columnDefs = self.dForm.getColumnDefs(bizobj.DataSource) 
     346        grid.columnDefs = self.Form.getColumnDefs(bizobj.DataSource) 
    347347         
    348348        preview = self.addObject(dCommandButton.dCommandButton, 'cmdPreview') 
     
    355355 
    356356    def fillGrid(self): 
    357         bizobj = self.dForm.getBizobj() 
     357        bizobj = self.Form.getBizobj() 
    358358        self.BrowseGrid.fillGrid() 
    359359        self.GetSizer().Layout() 
     
    363363 
    364364    def newRecord(self): 
    365         self.dForm.new() 
     365        self.Form.new() 
    366366        self.editRecord() 
    367367     
    368368         
    369369    def deleteRecord(self): 
    370         self.dForm.delete() 
     370        self.Form.delete() 
    371371 
    372372     
     
    379379        if self.itemsCreated: 
    380380            html = self.grid.getHTML(justStub=False) 
    381             win = wx.html.HtmlEasyPrinting("Dabo Quick Print", self.dForm) 
     381            win = wx.html.HtmlEasyPrinting("Dabo Quick Print", self.Form) 
    382382            printData = win.GetPrintData() 
    383383            setupData = win.GetPageSetupData() 
     
    391391            #s#etupData.SetMarginBottomRight((17,5)) 
    392392    #       # setupData.SetOrientation(wx.LANDSCAPE) 
    393             win.SetHeader("<B>%s</B>" % (self.dForm.Caption,)) 
     393            win.SetHeader("<B>%s</B>" % (self.Form.Caption,)) 
    394394            win.SetFooter("<CENTER>Page @PAGENUM@ of @PAGESCNT@</CENTER>") 
    395395            #win.PageSetup() 
     
    409409 
    410410    def onValueRefresh(self, event=None): 
    411         form = self.dForm 
     411        form = self.Form 
    412412        bizobj = form.getBizobj() 
    413413        if bizobj and bizobj.getRowCount() >= 0: 
     
    420420 
    421421    def createItems(self): 
    422         dataSource = self.dForm.getBizobj().DataSource 
    423         columnDefs = self.dForm.getColumnDefs(dataSource) 
     422        dataSource = self.Form.getBizobj().DataSource 
     423        columnDefs = self.Form.getColumnDefs(dataSource) 
    424424 
    425425        for column in columnDefs: 
     
    465465                    label.Caption = '%s:' % column['caption'] 
    466466 
    467                 if self.dForm.getBizobj().getRowCount() >= 0: 
     467                if self.Form.getBizobj().getRowCount() >= 0: 
    468468                    objectRef.refresh() 
    469469 
     
    490490        dChildViewPage.doDefault(parent, 'pageChildView') 
    491491        self.dataSource = dataSource 
    492         self.bizobj = self.dForm.getBizobj().getChildByDataSource(self.dataSource) 
     492        self.bizobj = self.Form.getBizobj().getChildByDataSource(self.dataSource) 
    493493        self.pickListRef = None 
    494494     
     
    516516 
    517517    def createItems(self): 
    518         cb = self.dForm.getChildBehavior(self.dataSource) 
     518        cb = self.Form.getChildBehavior(self.dataSource) 
    519519        if cb['EnableNew']: 
    520520            nb = self.addObject(dCommandButton.dCommandButton, 'cmdNew') 
     
    530530         
    531531    def fillGrid(self): 
    532         self.ChildViewGrid.columnDefs = self.dForm.getColumnDefs(self.dataSource) 
     532        self.ChildViewGrid.columnDefs = self.Form.getColumnDefs(self.dataSource) 
    533533        self.ChildViewGrid.fillGrid() 
    534534        self.GetSizer().Layout() 
     
    540540        pickBizobj = evt.GetEventObject().getBizobj() 
    541541        pickedPK = pickBizobj.getPK() 
    542         cb = self.dForm.getChildBehavior(self.dataSource) 
     542        cb = self.Form.getChildBehavior(self.dataSource) 
    543543        try: 
    544544            fkField = cb['FK'] 
     
    563563             
    564564    def newRecord(self, evt=None): 
    565         cb = self.dForm.getChildBehavior(self.dataSource) 
     565        cb = self.Form.getChildBehavior(self.dataSource) 
    566566        if cb['EnableNew']: 
    567567            try: 
     
    588588                                    self.Caption = "Picklist: %s" % self.Caption 
    589589                                     
    590                             ref = PickList(self.dForm) 
     590                            ref = PickList(self.Form) 
    591591                            self.pickListRef = ref 
    592592                         
     
    608608        """ Ask the bizobj to delete the current record. 
    609609        """ 
    610         cb = self.dForm.getChildBehavior(self.dataSource) 
     610        cb = self.Form.getChildBehavior(self.dataSource) 
    611611        if cb['EnableDelete']: 
    612612            message = _("This will delete the highlighted child record, and cannot " 
     
    615615                try: 
    616616                    self.bizobj.delete() 
    617                     self.dForm.setStatusText(_("Child record deleted.")) 
     617                    self.Form.setStatusText(_("Child record deleted.")) 
    618618                except dException.dException, e: 
    619619                    dMessageBox.stop("Delete failed with response:\n%s" % str(e)) 
     
    624624             
    625625    def editRecord(self): 
    626         cb = self.dForm.getChildBehavior(self.dataSource) 
     626        cb = self.Form.getChildBehavior(self.dataSource) 
    627627        if cb['EnableEdit']: 
    628628            dMessageBox.stop("Editing childview records isn't supported yet.") 
  • trunk/ui/uiwx/classes/dPageFrameDataNav.py

    r294 r295  
    2929        self.AssignImageList(il) 
    3030         
    31         if self.dForm.FormType != 'Edit': 
     31        if self.Form.FormType != 'Edit': 
    3232            self.AddPage(self.SelectPageClass(self), 'Select', imageId=0) 
    3333            self.AddPage(self.BrowsePageClass(self), 'Browse', imageId=1) 
    3434         
    35         if self.dForm.FormType != 'PickList': 
     35        if self.Form.FormType != 'PickList': 
    3636            self.AddPage(self.EditPageClass(self), 'Edit', imageId=2) 
    3737 
  • trunk/ui/uiwx/classes/dPemMixin.py

    r288 r295  
    244244    # Property get/set/delete methods follow. 
    245245 
     246    def _getForm(self): 
     247        """ Return a reference to the containing Form.  
     248        """ 
     249        try: 
     250            return self._cachedForm 
     251        except AttributeError: 
     252            import dabo.ui 
     253            obj, frm = self, None 
     254            while obj: 
     255                parent = obj.Parent 
     256                if isinstance(parent, dabo.ui.dForm): 
     257                    frm = parent 
     258                    break 
     259                else: 
     260                    obj = parent 
     261            if frm: 
     262                self._cachedForm = frm   # Cache for next time 
     263            return frm 
     264 
     265 
    246266    def _getFont(self): 
    247267        return self._pemObject.GetFont() 
     
    358378        parent = self._pemObject.GetParent() 
    359379        if parent: 
    360             if not self.dApp or self.dApp.AutoNegotiateUniqueNames: 
     380            if not self.Application or self.Application.AutoNegotiateUniqueNames: 
    361381                i = 0 
    362382                while True: 
     
    525545 
    526546    # Property definitions follow 
     547    Form = property(_getForm, None, None, 
     548                    'Object reference to the dForm containing the object. (read only).') 
     549     
    527550    WindowHandle = property(_getWindowHandle, None, None, 
    528551                    'The platform-specific handle for the window. Read-only. (long)') 
  • trunk/ui/uiwx/uiApp.py

    r291 r295  
    2727        self.dApp = dApp 
    2828 
    29         self.mainFrame = dFormMain(dApp
     29        self.mainFrame = dFormMain(
    3030        self.SetTopWindow(self.mainFrame) 
    3131