Skip to content

Commit

Permalink
Add page_size property for the tables.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaio committed Oct 6, 2012
1 parent f118dba commit 97cee5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engine/tabsqlitedb.py
Expand Up @@ -90,6 +90,7 @@ def __init__(self, name = 'table.db', user_db = None, filename = None ):
# 'commit_keys':'space',
# 'forward_keys':'Return',
'select_keys':'1,2,3,4,5,6,7,8,9,0',
'page_size':'6',
'page_up_keys':'Page_Up,minus',
'page_down_keys':'Page_Down,equal',
'status_prompt':'',
Expand Down Expand Up @@ -271,8 +272,7 @@ def get_chinese_mode (self):

def get_page_size (self):
try:
__select_keys = self.get_ime_property ('select_keys')
return len (__select_keys.split (','))
return int( self.get_ime_property ('page_size') )
except:
return 6

Expand Down

0 comments on commit 97cee5a

Please sign in to comment.