• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python myTools.pressTAB函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中myTools.pressTAB函数的典型用法代码示例。如果您正苦于以下问题:Python pressTAB函数的具体用法?Python pressTAB怎么用?Python pressTAB使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了pressTAB函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:35,代码来源:ba_ProgressTotal.py


示例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()
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:33,代码来源:ba_Contingency_Exp.py


示例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()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:31,代码来源:client_PayDistrib.py


示例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)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:30,代码来源:taxes_Setup.py


示例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)
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:35,代码来源:report_PBWorksheet.py


示例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)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:29,代码来源:report_UDInvoice.py


示例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")
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:27,代码来源:taxes_Setup.py


示例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)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:35,代码来源:ba__Common.py


示例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")    
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:27,代码来源:bill_Split.py


示例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)
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:27,代码来源:email_Setup.py


示例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()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:31,代码来源:settings_Categories.py


示例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)
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:32,代码来源:email_Setup.py


示例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)
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:34,代码来源:email_Setup.py


示例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()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:35,代码来源:ba_ProgressTotal.py


示例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()
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:34,代码来源:ba_Precision.py


示例16: fChoose_CSV_Print

def fChoose_CSV_Print(pReportName):
#---------------------------------------------------#

    logging.debug('- fChoose_CSV_Print')

    # choose CSV
    myTools.pressSHIFTTAB(2)
    time.sleep(1)
    type("c")
    time.sleep(1)

    # print the report
    type(Key.ENTER)    
    time.sleep(1)

    # fill in path and name; press ENTER    
    type(Settings.repFolder + "\\" + pReportName)
    time.sleep(1)

    # export titles
    myTools.pressTAB(2)
    time.sleep(1)
    type(Key.SPACE)    
    time.sleep(1)

    # OK
    type(Key.ENTER)    
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:27,代码来源:report_UDSlip.py


示例17: fSort_FundsListFields

def fSort_FundsListFields():
#---------------------------------------------------#

    logging.debug('- fSort_FundsListFields')

    logging.debug('- open report list')
    type("r",KeyModifier.ALT)
    type("f")
    time.sleep(1)

    # open report
    type("udf")
    time.sleep(1)
    type("o",KeyModifier.CTRL)
    time.sleep(1)

    # add funds id 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)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:29,代码来源:report_UDFunds.py


示例18: fSetup_InvoiceListing

def fSetup_InvoiceListing():
    # ---------------------------------------------------#

    logging.debug("- set up invlist")

    myTools.getFocus()
    type("r", KeyModifier.ALT)
    type("a")
    time.sleep(1)
    type("i")
    time.sleep(1)

    myTools.removeDateAndTime()

    type(Key.F4, KeyModifier.CTRL)
    time.sleep(1)
    type("y")
    time.sleep(1)

    # open report
    type("o", KeyModifier.CTRL)
    # 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)
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:34,代码来源:report_InvoiceListing.py


示例19: setupReport

def setupReport():
#---------------------------------------------------#

    # open report
    type("o",KeyModifier.CTRL)
    time.sleep(1)

    logging.debug('- default options')
    # options button
    myTools.pressSHIFTTAB(4)
    type(Key.ENTER)
    time.sleep(1)
    
    # default button   
    myTools.pressSHIFTTAB(4)
    type(Key.ENTER)
    time.sleep(1)

    # close dialog
    myTools.pressTAB(1)
    type(Key.ENTER)
    time.sleep(1)   

    logging.debug('- print report')

    # move to Print To and choose CSV
    myTools.pressTAB(2)
    type("c")
    time.sleep(1)

    # print the report
    type(Key.ENTER)    
    time.sleep(1)
开发者ID:gh-tomhinds,项目名称:ConfirmDataEntry,代码行数:33,代码来源:report_Budgets.py


示例20: fSetup_BABills

def fSetup_BABills():
    # ---------------------------------------------------#
    """
    set up bills to print to text; no column stops
    """

    logging.debug("- set up bill report")

    type("b", KeyModifier.CTRL)
    time.sleep(1)

    # Print to text
    myTools.pressTAB(6)
    type("t")

    # Save AS
    myTools.pressTAB(2)
    type(Key.ENTER)

    # no column stops
    type("u", KeyModifier.ALT)
    time.sleep(1)
    type(Key.ENTER)

    if exists("replace_msg.png"):
        type(Key.ENTER)

    # SAVE and Close
    type("s", KeyModifier.CTRL)
    type(Key.ENTER)
    type(Key.F4, KeyModifier.CTRL)
开发者ID:gh-tomhinds,项目名称:Test_It_All,代码行数:31,代码来源:ba__Common.py



注:本文中的myTools.pressTAB函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python myTools.sectionEndTimeStamp函数代码示例发布时间:2022-05-27
下一篇:
Python myTools.pressSHIFTTAB函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap