| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/cinnamon-screensaver/__pycache__/ |
Upload File : |
o
�Zb� � @ sf d dl mZmZmZmZmZ d dlmZmZm Z d dl
mZ d dlm
Z
dZdZG dd� de
e�Zd S )
� )�CinnamonDesktop�GLib�Gtk�Gio�Pango)�utils�trackers�settings)�
BaseWindow)�Floatingi@ �� c sV e Zd ZdZd� fdd� Zdd� Zd d
� Zdd� Zd
d� Zddd�Z ddd�Z
� ZS )�ClockWidgetak
ClockWidget displays the time and away message on the screen.
It is a child of the Stage's GtkOverlay, and its placement is
controlled by the overlay's child positioning function.
When not Awake, it positions itself around all monitors
using a timer which randomizes its halign and valign properties
as well as its current monitor.
Nr Fc s� t t| ��|� | �� �d� | �tjj� | � dd� d | _
|| _t�
� s(d S || _tjtjjd�}| �|� |�� t�� | _| j�� | j�d� | j�dd� |�| jddd� t�� | _| j�� | j�d� | j�dd� | jr}| j�d� n| j�d � |�| jddd� t�� | _
| �� t�� � | j
d
| j!� t"j#j$dd�}|�%d
d �| _&t�� � | j&d| j'� t�� � | d| j(� | �)� d S )N�clock�margin� )�orientationTg �?F�2 �P �
notify::clockz/etc/localtime)�pathr �changed�destroy)*�superr
�__init__�get_style_context� add_class�
set_halignr �Align�START�set_propertyr �low_resr �get_show_clock�away_message�Box�Orientation�VERTICAL�add�show�Label�label�
set_line_wrap�
set_alignment�
pack_start� msg_label�set_max_width_charsr � WallClock�set_clock_formatr �con_tracker_get�connect�on_clock_changedr �File�new_for_path�monitor_file�
tz_monitor�
on_tz_changed�
on_destroy�update_clock)�selfr"