Update of /cvsroot/pythoncard/PythonCard/samples/dbBrowser
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29057
Modified Files:
dbBrowser.rsrc.py dbTable.py
Log Message:
Mac layout tweak, fixed PyGridTableBase typo
Index: dbBrowser.rsrc.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/samples/dbBrowser/dbBrowser.rsrc.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** dbBrowser.rsrc.py 10 May 2004 05:02:07 -0000 1.14
--- dbBrowser.rsrc.py 19 Aug 2004 15:41:40 -0000 1.15
***************
*** 69,76 ****
{'type':'Button', 'name':'btnBrowse', 'position':(415, 26), 'size':(-1, -1), 'label':'Browse', 'toolTip':'Browse the table data'},
{'type':'StaticLine', 'name':'lnButtons', 'position':(5, 64), 'size':(490, -1) },
! {'type':'Button', 'name':'btnFirstRow', 'position':(100, 76), 'size':(-1, -1), 'label':'First Row', 'enabled':0, 'command':'firstRecord'},
! {'type':'Button', 'name':'btnPreviousRow', 'position':(175, 76), 'size':(-1, -1), 'label':'Previous Row', 'enabled':0, 'command':'previousRecord'},
! {'type':'Button', 'name':'btnNextRow', 'position':(256, 76), 'size':(-1, -1), 'label':'Next Row', 'enabled':0, 'command':'nextRecord'},
! {'type':'Button', 'name':'btnLastRow', 'position':(331, 76), 'size':(-1, -1), 'label':'Last Row', 'enabled':0, 'command':'lastRecord'}
]
}
--- 69,76 ----
{'type':'Button', 'name':'btnBrowse', 'position':(415, 26), 'size':(-1, -1), 'label':'Browse', 'toolTip':'Browse the table data'},
{'type':'StaticLine', 'name':'lnButtons', 'position':(5, 64), 'size':(490, -1) },
! {'type':'Button', 'name':'btnFirstRow', 'position':(60, 76), 'size':(-1, -1), 'label':'First Row', 'enabled':0, 'command':'firstRecord'},
! {'type':'Button', 'name':'btnPreviousRow', 'position':(147, 76), 'size':(-1, -1), 'label':'Previous Row', 'enabled':0, 'command':'previousRecord'},
! {'type':'Button', 'name':'btnNextRow', 'position':(260, 76), 'size':(-1, -1), 'label':'Next Row', 'enabled':0, 'command':'nextRecord'},
! {'type':'Button', 'name':'btnLastRow', 'position':(351, 76), 'size':(-1, -1), 'label':'Last Row', 'enabled':0, 'command':'lastRecord'}
]
}
Index: dbTable.py
===================================================================
RCS file: /cvsroot/pythoncard/PythonCard/samples/dbBrowser/dbTable.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** dbTable.py 13 Apr 2004 17:55:02 -0000 1.4
--- dbTable.py 19 Aug 2004 15:41:40 -0000 1.5
***************
*** 1,4 ****
from wx.grid import *
! class DBTable(wxPyGridTableBase):
"""Class to wrap a database table that can be assigned to a grid
--- 1,4 ----
from wx.grid import *
! class DBTable(PyGridTableBase):
"""Class to wrap a database table that can be assigned to a grid
***************
*** 6,10 ****
"""
def __init__(self, db, tableName):
! wxPyGridTableBase.__init__(self)
self.__db=db
self.tableName=tableName
--- 6,10 ----
"""
def __init__(self, db, tableName):
! PyGridTableBase.__init__(self)
self.__db=db
self.tableName=tableName
|