%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/internet/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/internet/__pycache__/tksupport.cpython-312.pyc

�

Ϫ�f���T�dZddlmZddlmZddlmZda	d
d�Z
d�Zd�Zdd�Z
dd	gZy)a�
This module integrates Tkinter with twisted.internet's mainloop.

Maintainer: Itamar Shtull-Trauring

To use, do::

    | tksupport.install(rootWidget)

and then run your reactor as usual - do *not* call Tk's mainloop(),
use Twisted's regular mechanism for running the event loop.

Likewise, to stop your program you will need to stop Twisted's
event loop. For example, if you want closing your root widget to
stop Twisted::

    | root.protocol('WM_DELETE_WINDOW', reactor.stop)

When using Aqua Tcl/Tk on macOS the standard Quit menu item in
your application might become unresponsive without the additional
fix::

    | root.createcommand("::tk::mac::Quit", reactor.stop)

@see: U{Tcl/TkAqua FAQ for more info<http://wiki.tcl.tk/12987>}
�N)�taskc��t�tj|j�atj|dzd�y)z/Install a Tkinter.Tk() object into the reactor.g@�@FN)�installTkFunctionsr�LoopingCall�update�_task�start)�widget�ms�reactors   �</usr/lib/python3/dist-packages/twisted/internet/tksupport.py�installr(s.�������V�]�]�+�E�	�K�K��V��U�#�c�0�tj�day)zdRemove the root Tk widget from the reactor.

    Call this before destroy()ing the root widget.
    N)r�stop�rr
�	uninstallr0s��
�J�J�L��Erc�J�ddl}t|jj_y)Nr)�twisted.python.util�getPassword�python�util)�twisteds r
rr:s���&1�G�N�N���#rc��	tjd|d��}|s|Stjddd��}||k(r|Stjdd��R)NzPassword Dialog�*)�showzConfirm PasswordzPassword Mismatchz&Passwords did not match, starting over)�tkSimpleDialog�	askstring�tkMessageBox�	showerror)�prompt�confirm�try1�try2s    r
rr@s^��
��'�'�(9�6��L����K��'�'�(9�;M�TW�X���4�<��K��"�"�#�%M�
�rrr)�
N)�r)�__doc__�tkinter.messagebox�
messageboxr�tkinter.simpledialog�simpledialogr�twisted.internetrrrrrr�__all__rrr
�<module>r.s:��
�6*�-�!���$��2���k�
"�r

Zerion Mini Shell 1.0