Did I find the right examples for you? yes no

All Samples(7)  |  Call(4)  |  Derive(0)  |  Import(3)

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)
        self.set_size_request(pixbuf.get_width(), pixbuf.get_height())
 
        widget_fix_cycle_destroy_bug(self)
        self.connect("expose-event", lambda w, e: self.expose_disable_button(w, e, dpixbufs))
 

src/d/e/deepin-ui-HEAD/dtk/ui/navigatebar.py   deepin-ui(Download)
from utils import color_hex_to_cairo
from theme import ui_theme
from utils import widget_fix_cycle_destroy_bug, propagate_expose, get_content_size
import gobject
import gtk
            self.item_button.set_size_request(pixbuf.get_width(), pixbuf.get_height())
 
        widget_fix_cycle_destroy_bug(self.item_button)
 
        self.item_button.connect("expose-event", self.expose_nav_item)

src/d/e/deepin-ui-HEAD/dtk/ui/group.py   deepin-ui(Download)
from constant import BUTTON_NORMAL, BUTTON_PRESS, BUTTON_HOVER
from draw import draw_pixbuf
from utils import widget_fix_cycle_destroy_bug, propagate_expose
import gobject
import gtk
        pixbuf = self.normal_dpixbuf.get_pixbuf()
        self.set_size_request(pixbuf.get_width(), pixbuf.get_height())    
        widget_fix_cycle_destroy_bug(self)
        self.connect("expose-event", self.expose_image_button_item)
        self.connect("clicked", lambda w: self.wrap_image_button_item_clicked_action())
        pixbuf = self.inactive_dpixbuf.get_pixbuf()
        self.set_size_request(pixbuf.get_width(), pixbuf.get_height())
        widget_fix_cycle_destroy_bug(self)
        self.connect("expose-event", self.expose_toggle_button_item)
        self.connect("toggled", lambda w: self.wrap_toggle_button_clicked_action())