Exemplo n.º 1
0
def launch_tkkb(*args):
    ## Launch on screen keyboard program called tkkb-keyboard.
    ## install with '$ sudo apt-get install tkkb-keyboard'
    global tkkb
    if tkkb is None:
        tkkb = Toplevel(root)
        def onEnter(*args):
            kill_tkkb()
            sendPic()
        Tkkb(tkkb, etext, onEnter=onEnter)
        etext.config(state=NORMAL)
        tkkb.wm_attributes("-topmost", 1)
        tkkb.transient(root)
        tkkb_button.config(command=kill_tkkb, text="Close KB")
        tkkb.protocol("WM_DELETE_WINDOW", kill_tkkb)
Exemplo n.º 2
0
    def launch_tkkb(*args):
        '''
        Launch on screen keyboard program called tkkb-keyboard.
        install with '$ sudo apt-get install tkkb-keyboard'
        '''
        global tkkb
        if tkkb is None:
            tkkb = Toplevel(self)
            tkkb.geometry("%dx%d%+d%+d" % (WIDTH, HEIGHT * .55, 0, HEIGHT -
                                           (HEIGHT * .55)))
            tkkb.overrideredirect(True)

            def onEnter(*args):
                kill_tkkb()
                set_email_and_start()

            Tkkb(tkkb, etext, onEnter=onEnter, fill=FG_COLOR)
            etext.config(state=NORMAL)
            tkkb.wm_attributes("-topmost", 1)
            tkkb.transient(self)
            tkkb_button.config(command=kill_tkkb, text="Close KB")
            tkkb.protocol("WM_DELETE_WINDOW", kill_tkkb)