r16354 - gnucash/branches/dogtail/src/test-dogtail - fix some issues with reconcilation frames
Ahmed Sayed
asayed at cvs.gnucash.org
Tue Jul 24 18:19:32 EDT 2007
Author: asayed
Date: 2007-07-24 18:19:31 -0400 (Tue, 24 Jul 2007)
New Revision: 16354
Trac: http://svn.gnucash.org/trac/changeset/16354
Modified:
gnucash/branches/dogtail/src/test-dogtail/GnuCash.py
Log:
fix some issues with reconcilation frames
Modified: gnucash/branches/dogtail/src/test-dogtail/GnuCash.py
===================================================================
--- gnucash/branches/dogtail/src/test-dogtail/GnuCash.py 2007-07-24 18:32:16 UTC (rev 16353)
+++ gnucash/branches/dogtail/src/test-dogtail/GnuCash.py 2007-07-24 22:19:31 UTC (rev 16354)
@@ -1044,7 +1044,9 @@
class Register(Node):
- """ Wrapper class for gnucash register """
+ """ Wrapper class for gnucash register
+ TODO: It is better to have register supported by a11y to be able to be more readable by dogtail
+ """
def __init__(self, initializer):
Node.__init__(self, initializer)
@@ -1054,6 +1056,7 @@
def __goto(self, x, y):
sleep(1)
+ # Click to activate the Register widget
dogtail.rawinput.click(self.position[0], self.position[1])
for j in range(x):
self.typeText('\n')
@@ -1061,6 +1064,7 @@
self.keyCombo("Tab")
def set_cell_text(self, text):
+ """ based on the self.row and self.col set_cell_text get the relative value and move press tab (move right) or Shift-Tab move left based on the the difference """
relative_pos = self.column_val - self.prev_col_val
print relative_pos
if relative_pos > 0 :
@@ -1075,6 +1079,7 @@
# sleep(5)
def end_trans(self):
+ """ end trans finalize the transaction entery by click Enter and close the register """
self.keyCombo("Enter")
GnuCashApp().menu('File').menuItem('Close').click()
@@ -1187,16 +1192,6 @@
self.funds_in_panel.findChild(predicate.GenericPredicate(roleName='table'))
self.funds_in = self.FundsTable(self.funds_in_table)
- def __setattr__(self, name, value):
- if name =='ending_balance':
- self.ending_balance_txt.text = value
- elif name == 'include_subaccount':
- if value and not self.include_subaccount_cb.checked:
- self.include_subaccount_cb.click()
- elif not value and self.include_subaccount_cb.checked:
- self.include_subaccount_cb.click()
- else:
- self.__dict__[name]=value
if __name__ == '__main__':
""" This main Changes Frequently because it used to test most recent added widget """
More information about the gnucash-changes
mailing list