Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/d/e/deepin-ui-HEAD/dtk/ui/button.py   deepin-ui(Download)
import pango
from deepin_utils.process import run_command
from utils import (get_content_size, color_hex_to_cairo, propagate_expose, set_clickable_cursor,
                   window_is_max, get_same_level_widgets, widget_fix_cycle_destroy_bug, 
                   get_widget_root_coordinate, WIDGET_POS_BOTTOM_LEFT)
    '''
    # Get dynamic pixbuf.
    if window_is_max(widget):
        normal_dpixbuf = ui_theme.get_pixbuf("%s/%s_normal.png" % (sub_dir, unmax_path_prefix))
        hover_dpixbuf = ui_theme.get_pixbuf("%s/%s_hover.png" % (sub_dir, unmax_path_prefix))

src/d/e/deepin-ui-HEAD/dtk/ui/titlebar.py   deepin-ui(Download)
from constant import DEFAULT_FONT_SIZE
import tooltip as Tooltip
from utils import window_is_max
from theme import ui_theme
import gobject
    def max_signal(w):    
        if window_is_max(w):
            win.unmaximize()
            print "min"
        else: