本文整理汇总了Python中myTools.pressTAB函数的典型用法代码示例。如果您正苦于以下问题:Python pressTAB函数的具体用法?Python pressTAB怎么用?Python pressTAB使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pressTAB函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: fProgressTotal_Setup1
def fProgressTotal_Setup1():
# - - - - - - - - - - - - - - - - - - - - - - - - - #
myTools.sectionStartTimeStamp("ba ProgressTot1")
logging.debug("ba ProgressTot1")
# open client
type("i", KeyModifier.CTRL)
time.sleep(1)
type("BA-ProgressTot")
type(Key.ENTER)
time.sleep(1)
# get to arrangement field for time
ba__Common.fMoveto_BAPage()
myTools.pressTAB(4)
# switch to minimum
type(Key.HOME)
myTools.pressDOWN(11)
# enter details
type(Key.TAB)
type(Key.ENTER)
time.sleep(1)
type("500")
time.sleep(1)
type(Key.ENTER)
# save and close
type("s", KeyModifier.CTRL)
type(Key.F4, KeyModifier.CTRL)
time.sleep(1)
type(Key.F4, KEY_CTRL)
myTools.sectionEndTimeStamp()
示例2: fContingencyExp_Setup2
def fContingencyExp_Setup2(pBAClient):
#---------------------------------------------------#
myTools.sectionStartTimeStamp(pBAClient + "2")
logging.debug(pBAClient + "2")
# open client
myTools.openClient(pBAClient)
# get to arrangement field for exp
ba__Common.fMoveto_BAPage()
myTools.pressTAB(6)
# enter details
type(Key.ENTER)
time.sleep(1)
# if int(Settings.tsVersion) > 2014:
# myTools.pressTAB(1)
# else:
myTools.pressTAB(2)
type(Key.DOWN)
# save and close
type(Key.ENTER)
type("s",KeyModifier.CTRL)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
示例3: fExport_ClientSettings
def fExport_ClientSettings():
# ---------------------------------------------------#
logging.debug("-- export client settings")
click("export_btn.png")
time.sleep(1)
# move to Export To list
myTools.pressTAB(1)
# move to Nahant
type("n")
time.sleep(1)
# move highlight to account for Timeslips weirdness
type(Key.UP)
type(Key.DOWN)
time.sleep(1)
# highlight and mark rest of clients
type(Key.END, Key.SHIFT)
type(Key.F4)
time.sleep(1)
# click Export, then Yes
type(Key.TAB)
type(Key.ENTER)
time.sleep(1)
type(Key.ENTER)
myTools.waitForExportSuccess()
示例4: fChange_ClientSettings
def fChange_ClientSettings():
#---------------------------------------------------#
logging.debug('- Change_ClientSettings')
myTools.getFocus()
logging.debug('-- change a client')
type("i",KeyModifier.CTRL)
time.sleep(1)
type(Key.ENTER)
time.sleep(1)
myTools.pressF6(4)
if Settings.tsVersion > "2014":
myTools.pressF6(3)
time.sleep(1)
myTools.pressTAB(3)
time.sleep(1)
type("my")
logging.debug('-- save client')
type("s",KeyModifier.CTRL)
fExport_ClientSettings()
fExport_TemplateSettings()
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
type(Key.F4,KeyModifier.CTRL)
示例5: setupCustomFilter
def setupCustomFilter():
#---------------------------------------------------#
""" sets up custom filter Client List; only used by fPrint_PreBill_2 """
logging.debug('- setupCustomFilter')
wait("slip_trans_date.png",60)
time.sleep(1)
click("slip_trans_date.png")
time.sleep(1)
# switch to the client group
myTools.pressSHIFTTAB(1)
type("c")
time.sleep(1)
# choose Client List
myTools.pressTAB(1)
myTools.pressDOWN(7)
click("add_filter.png")
time.sleep(1)
# mark All
type(Key.INSERT)
time.sleep(1)
# remove Franklin
myTools.pressDOWN(5)
type(Key.F4,KeyModifier.SHIFT)
# press OK
myTools.pressTAB(1)
type(Key.ENTER)
time.sleep(1)
示例6: fSort_InvoiceListFields
def fSort_InvoiceListFields():
#---------------------------------------------------#
logging.debug('- fSort_InvoiceListFields')
logging.debug('- open report list')
type("r",KeyModifier.ALT)
type("a")
time.sleep(1)
# open report
type("udi")
time.sleep(1)
type("o",KeyModifier.CTRL)
time.sleep(1)
# add invoice number sort
type(Key.F6)
time.sleep(1)
myTools.pressTAB(2)
time.sleep(1)
type(Key.SPACE)
# close and save report
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
type("y")
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
示例7: fChange_TaxRule
def fChange_TaxRule():
#---------------------------------------------------#
logging.debug('- Change_TaxRule')
logging.debug('-- open Taxes')
type("p",KeyModifier.ALT)
type("t")
time.sleep(2)
logging.debug('-- open GA tax rule')
type(Key.F6)
type("g")
type(Key.ENTER)
time.sleep(1)
logging.debug('-- change rate')
myTools.pressTAB(3)
type("7.25")
type(Key.TAB)
type(Key.END)
time.sleep(1)
logging.debug('-- change settings')
type("s",KeyModifier.ALT)
type("i",KeyModifier.ALT)
type(Key.ENTER)
click("done_btn.png")
示例8: fImport_DefaultLayout
def fImport_DefaultLayout():
#---------------------------------------------------#
fImport_Layout("Low Detail")
logging.debug('- assign layout')
type("a",KeyModifier.ALT)
time.sleep(1)
# shift tab to open/templates control
myTools.pressSHIFTTAB(1)
time.sleep(1)
# press RIGHT to Template Clients
myTools.pressRIGHT(1)
time.sleep(1)
# press TAB to client list
myTools.pressTAB(1)
time.sleep(1)
#press F4 to mark template
type(Key.F4)
time.sleep(1)
# assign
type("a",KeyModifier.ALT)
type(Key.ENTER)
time.sleep(1)
# confirm and close
type(Key.ENTER)
time.sleep(1)
type(Key.F4,KeyModifier.CTRL)
time.sleep(1)
示例9: fSetup_SplitBills
def fSetup_SplitBills():
#---------------------------------------------------#
myTools.sectionStartTimeStamp("setup split")
logging.debug('- set up split bills')
myTools.getFocus()
# open split billing rule list
type("b",KeyModifier.ALT)
time.sleep(1)
type("i")
time.sleep(1)
fSetup_Primary("Beverly")
# new secondary
myTools.pressTAB(7)
fSetup_Secondary("Peabody",15)
fSetup_Secondary("Saugus",20)
# done
myTools.pressTAB(4)
type(Key.SPACE)
myTools.sectionEndTimeStamp()
backup_Data.fBackup_Checkpoint("split")
示例10: setup_BillTemplate
def setup_BillTemplate():
#---------------------------------------------------#
logging.debug('- edit bill template')
type("o",KeyModifier.CTRL)
time.sleep(1)
type("Invoice: [Invoice Number], Balance: [New Balance]")
time.sleep(1)
myTools.pressTAB(1)
type("a",KeyModifier.CTRL)
time.sleep(1)
type("Timekeeper: [Custom Timekeeper]")
type(Key.ENTER)
type("List: [Custom List]")
type(Key.ENTER)
type("Previous: [Previous Balance]")
type(Key.ENTER)
type("Fees: [Actual Fees - ITD + New]")
type(Key.ENTER)
type("Aged: Period 1: [Aged Period 1]")
time.sleep(1)
myTools.pressTAB(1)
type(Key.ENTER)
time.sleep(1)
示例11: fCreate_Categories
def fCreate_Categories():
# ---------------------------------------------------#
myTools.sectionStartTimeStamp("categories")
logging.debug("fCreate_Categories")
# make sure timeslips has focus
myTools.getFocus()
logging.debug("- open category list")
type("p", KeyModifier.ALT)
# hot keys changed for TS2014
if int(Settings.tsVersion) < 2014:
type("i")
else:
type("o")
time.sleep(1)
for category in ["Construction", "General", "Landscape", "Hardware", "Supplies", "Materials", "Other"]:
logging.debug("-- create: " + category)
type("n", KeyModifier.ALT)
type(category)
type(Key.ENTER)
logging.debug("- close list")
myTools.pressTAB(4)
type(Key.ENTER)
myTools.sectionEndTimeStamp()
示例12: setup_StatementTemplate
def setup_StatementTemplate(pPeriod):
#---------------------------------------------------#
logging.debug('- edit statement template: ' + pPeriod)
type("Client: [Nickname 1] - Balance: [New Balance]")
myTools.pressTAB(1)
type("a",KeyModifier.CTRL)
time.sleep(1)
type("Period: " + pPeriod)
type(Key.ENTER)
type("Timekeeper: [Custom Timekeeper]")
type(Key.ENTER)
type("List: [Custom List]")
type(Key.ENTER)
type("Previous: [Previous Balance]")
type(Key.ENTER)
type("Fees: [Actual Fees - ITD + New]")
type(Key.ENTER)
type("Aged: Period 1: [Aged Period 1]")
type(Key.ENTER)
type("Oldest: [Oldest Balance Amount]")
type(Key.ENTER)
type("Email: [Email Address]")
time.sleep(1)
if int(Settings.tsVersion) < 2015:
myTools.pressTAB(1)
type(Key.ENTER)
time.sleep(1)
示例13: setup_ReprintTemplates
def setup_ReprintTemplates():
#---------------------------------------------------#
logging.debug('- edit reprint template')
if int(Settings.tsVersion) < 2015:
type("3",KeyModifier.CTRL) # use Ctrl+3 instead of F6; defect in ts2014
type(Key.ENTER)
else:
type(Key.F6)
time.sleep(1)
type("Copy [Invoice Number] for [Invoice Balance]: [Invoice Status]")
time.sleep(1)
myTools.pressTAB(1)
type("a",KeyModifier.CTRL)
time.sleep(1)
type("Timekeeper: [Custom Timekeeper]")
type(Key.ENTER)
type("Bill Date: [Bill Date]")
type(Key.ENTER)
type("New Charges: [New Charges]")
type(Key.ENTER)
type("InRefTo: [In Reference To]")
type(Key.ENTER)
type("Firm Name: [Firm Name]")
time.sleep(1)
if int(Settings.tsVersion) < 2015:
myTools.pressTAB(1)
type(Key.ENTER)
time.sleep(1)
示例14: fProgressTotal_Setup3
def fProgressTotal_Setup3():
# - - - - - - - - - - - - - - - - - - - - - - - - - #
myTools.sectionStartTimeStamp("ba ProgressTot3")
logging.debug("ba ProgressTot3")
# open client
type("i", KeyModifier.CTRL)
time.sleep(1)
type("BA-ProgressTot")
type(Key.ENTER)
time.sleep(1)
# get to arrangement field for time
ba__Common.fMoveto_BAPage()
myTools.pressTAB(5)
# enter details
type(Key.ENTER)
time.sleep(1)
type("700")
time.sleep(1)
type("u", KeyModifier.ALT)
type(Key.END)
type(Key.ENTER)
# save and close
type("s", KeyModifier.CTRL)
type(Key.F4, KeyModifier.CTRL)
time.sleep(1)
type(Key.F4, KeyModifier.CTRL)
myTools.sectionEndTimeStamp()
示例15: fPrecision_Setup
def fPrecision_Setup():
# - - - - - - - - - - - - - - - - - - - - - - - - - #
myTools.sectionStartTimeStamp("ba Precision")
logging.debug("ba Precision")
# open client
type("i", KeyModifier.CTRL)
time.sleep(1)
type("BA-Precision")
type(Key.ENTER)
time.sleep(1)
# get to Rounding field
if int(Settings.tsVersion) < 2015:
myTools.pressF6(4)
time.sleep(1)
myTools.pressTAB(8)
else:
myTools.pressF6(7)
time.sleep(1)
myTools.pressTAB(7)
time.sleep(1)
type(Key.UP)
# save and close
type("s", KeyModifier.CTRL)
type(Key.F4, KeyModifier.CTRL)
time.sleep(1)
type(Key.F4, KeyModifier.CTRL)
myTools.sectionEndTimeStamp()