| Server IP : 46.62.235.243 / Your IP : 216.73.216.163 Web Server : Apache/2.4.58 (Ubuntu) System : Linux Linkabili3Dicembre 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/twisted/internet/__pycache__/ |
Upload File : |
�
oj� � �T � d Z ddlmZ ddlmZ ddlmZ da d
d�Z
d� Zd� Zdd�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 � t j | j � at j |dz d� 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 � t j � da y)zdRemove the root Tk widget from the reactor.
Call this before destroy()ing the root widget.
N)r �stop� r r
� uninstallr 0 s � �
�J�J�L��Er c �J � dd l } t | j j _ y )Nr )�twisted.python.util�getPassword�python�util)�twisteds r
r r : s � ��&1�G�N�N���#r c � � t j d| d�� }|s|S t j ddd�� }||k( r|S t j dd� �R)NzPassword Dialog�*)�showzConfirm PasswordzPassword Mismatchz&Passwords did not match, starting over)�tkSimpleDialog� askstring�tkMessageBox� showerror)�prompt�confirm�try1�try2s r
r r @ s^ � �
��'�'�(9�6��L����K��'�'�(9�;M�TW�X���4�<��K��"�"�#�%M�
� r r r )�
N)� r )�__doc__�tkinter.messagebox�
messageboxr �tkinter.simpledialog�simpledialogr �twisted.internetr r r r r r �__all__r r r
�<module>r. s: ��
�6 *� -� !���$��2�� �k�
"�r