https://t.me/RX1948
Server : LiteSpeed
System : Linux host 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User : idnco5810 ( 1093)
PHP Version : 8.2.29
Disable Function : NONE
Directory :  /lib/python3/dist-packages/twisted/internet/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/twisted/internet/__pycache__/tksupport.cpython-310.pyc
o

�b��@s\dZddlmZddlmZddlmZda	ddd�Z
dd�Zd	d
�Zddd
�Z
ddgZdS)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)�task�
cCs&t�t�|j�at�|dd�dS)z/Install a Tkinter.Tk() object into the reactor.g@�@FN)�installTkFunctionsr�LoopingCall�update�_task�start)�widget�ms�reactor�r�</usr/lib/python3/dist-packages/twisted/internet/tksupport.py�install(srcCst��dadS)zdRemove the root Tk widget from the reactor.

    Call this before destroy()ing the root widget.
    N)r�stoprrrr
�	uninstall0srcCsddl}t|jj_dS)Nr)�twisted.python.util�getPassword�python�util)�twistedrrr
r:sr�cCsD	tjd|dd�}|s
|Stjdddd�}||kr|St�dd�q)N�zPassword Dialog�*)�showzConfirm PasswordzPassword Mismatchz&Passwords did not match, starting over)�tkSimpleDialog�	askstring�tkMessageBox�	showerror)�prompt�confirm�try1�try2rrr
r@s��r)rN)rr)�__doc__�tkinter.messagebox�
messageboxr�tkinter.simpledialog�simpledialogr�twisted.internetrrrrrr�__all__rrrr
�<module>s




https://t.me/RX1948 - 2025