Server IP : 162.213.251.212 / Your IP : 18.221.22.8 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/lib64/python2.7/Demo/tkinter/ttk/ |
Upload File : |
� ��^c @ s� d Z d d l Z d d l Z d d l Z d d l m Z d g Z i d d 6d d 6d d 6d d 6Z i Z d � Z d � Z d S( ss This demonstrates good part of the syntax accepted by theme_create. This is a translation of plastik.tcl to python. You will need the images used by the plastik theme to test this. The images (and other tile themes) can be retrived by doing: $ cvs -z3 -d:pserver:anonymous@tktable.cvs.sourceforge.net:/cvsroot/tktable co tile-themes To test this module you should do, for example: import Tkinter import plastik_theme root = Tkinter.Tk() plastik_theme.install(plastik_image_dir) ... Where plastik_image_dir contains the path to the images directory used by the plastik theme, something like: tile-themes/plastik/plastik i����N( t PhotoImaget installs #efefeft frames #aaaaaat disabledfgs #657a9et selectbgs #fffffft selectfgc C s� t j j | � } t j j | � s7 t d | � � n xW t j d | � D]B } t j j | � d } | d } t | d | d d �t | <qK Wd S( Ns( %r is not a directory, can't load imagess %s/*.gifi i����t filet formatt gif89( t ost patht expandusert isdirt Exceptiont globt splitR t imgs( t imgdirt ft imgt name( ( s6 /usr/lib64/python2.7/Demo/tkinter/ttk/plastik_theme.pyt _load_imgs% s c C s= t | � t j � } | j d d d i'