• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python app_theme.get_pixbuf函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中skin.app_theme.get_pixbuf函数的典型用法代码示例。如果您正苦于以下问题:Python get_pixbuf函数的具体用法?Python get_pixbuf怎么用?Python get_pixbuf使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_pixbuf函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: __init__

 def __init__(self):
     self.tree_view_open  = app_theme.get_pixbuf("treeview/open.png")
     self.tree_view_close = app_theme.get_pixbuf("treeview/close.png")
     self.tree_view_right = app_theme.get_pixbuf("treeview/right.png")
     self.tree_view_bottom = app_theme.get_pixbuf("treeview/bottom.png")
     #
     self.listview_color = ui_theme.get_color("scrolledbar")
     self.play_list_vbox = gtk.VBox()
     #
     self.list_scroll_win   = ScrolledWindow(0, 0)
     self.list_scroll_win.set_policy(gtk.POLICY_NEVER, gtk.POLICY_ALWAYS)
     self.list_view    = ListView()
     #
     self.tree_scroll_win   = ScrolledWindow(0, 0)
     self.tree_scroll_win.set_policy(gtk.POLICY_NEVER, gtk.POLICY_ALWAYS)
     self.tree_view     = TreeViewBase()
     self.note_book = NoteBook()
     #
     self.list_view.on_draw_sub_item =  self.__listview_on_draw_sub_item
     self.list_view.columns.add_range(["filename", "time"])
     self.list_view.columns[0].width = 120
     self.list_view.columns[1].width = 95
     #
     self.note_book.hide_title()
     self.tree_view.paint_nodes_event = self.__treeview_paint_nodes_event
     #
     self.list_scroll_win.add_with_viewport(self.list_view)
     self.tree_scroll_win.add_with_viewport(self.tree_view)
     self.note_book.add_layout1(self.list_scroll_win) 
     self.note_book.add_layout2(self.tree_scroll_win)
     #self.play_list_vbox.pack_start(self.scroll_win, True, True)
     self.play_list_vbox.pack_start(self.note_book, True, True)
开发者ID:hailongqiu,项目名称:new-deepin-media-player,代码行数:32,代码来源:playlistview.py


示例2: __init__

 def __init__(self):
     self.button = ToggleButton(
         app_theme.get_pixbuf("bottom_buttons/play_list_button.png"),
         app_theme.get_pixbuf("bottom_buttons/list_button_background.png"),
         )
     self.button.set_active(False)
     tooltip_text(self.button, _("Playlist"))
开发者ID:Bruners,项目名称:deepin-media-player,代码行数:7,代码来源:play_list_button.py


示例3: __init__

    def __init__(self, padding_left=0,):
        '''
        init docs
        '''
        # Init.
        CycleStrip.__init__(self, app_theme.get_pixbuf("strip/background.png"))
        
        self.label = Label()
        self.label_align = gtk.Alignment()
        self.label_align.set(0.0, 0.5, 0, 0)
        self.label_align.set_padding(0, 0, padding_left, 0)
        self.label_align.add(self.label)

        self.search_button = ImageButton(
            app_theme.get_pixbuf("entry/search_normal.png"),
            app_theme.get_pixbuf("entry/search_hover.png"),
            app_theme.get_pixbuf("entry/search_press.png"),
            )
        self.search_entry = InputEntry(action_button=self.search_button)
        self.search_entry.set_size(220, 24)
        entry_align = gtk.Alignment(0.5, 0.5, 0, 0)
        entry_align.set_padding(0, 0, 5, 5)
        entry_align.add(self.search_entry)

        self.pack_start(self.label_align, True, True)
        self.pack_start(entry_align, False, False)
开发者ID:PeterDaveHello,项目名称:deepin-software-center,代码行数:26,代码来源:uninstall_page.py


示例4: __init__

 def __init__(self):        
     '''application.'''
     self.app = Application(False)
     # application set.
     self.app.set_default_size(800, 500)
     # self.app.window.resize
     self.app.set_icon(app_theme.get_pixbuf("icon.ico"))
     self.app.set_skin_preview(app_theme.get_pixbuf("frame.png"))
     # set titlebar.
     self.app.add_titlebar(["theme", "menu", "max", "min", "close"],
                           app_theme.get_pixbuf("logo.png"),
                           _("Deepin Media Player"), " ", 
                           add_separator = False)
     #
     self.main_ali = gtk.Alignment()
     self.main_vbox = gtk.VBox()
     self.main_ali.add(self.main_vbox)
     self.main_ali.set(0, 0, 1.0, 1.0)
     self.main_ali.set_padding(0, 2, 2, 2)
     '''movie screen. 电影播放屏幕.'''
     # 播放屏幕和播放列表的HBOX.
     self.screen_and_play_list_hbox = gtk.HBox() 
     self.screen_frame = gtk.Alignment(0.0, 0.0, 1.0, 1.0)
     self.screen = gtk.DrawingArea()
     self.screen_frame.add(self.screen)
     #
     self.play_list = gtk.Button("播放列表")
     #
     self.screen_and_play_list_hbox.pack_start(self.screen_frame, True, True)
     self.screen_and_play_list_hbox.pack_start(self.play_list, False, False)
     #
     self.main_vbox.pack_start(self.screen_and_play_list_hbox, True, True)
     #
     self.app.main_box.pack_start(self.main_ali, True, True)
开发者ID:hailongqiu,项目名称:movie_down,代码行数:34,代码来源:gui.py


示例5: __init__

    def __init__(self, 
                 tip_text=None,
                 menu=None,
                 top_menu_normal = app_theme.get_pixbuf("top_menu/normal.png"),
                 top_menu_prelight = app_theme.get_pixbuf("top_menu/prelight.png"),
                 top_menu_press = app_theme.get_pixbuf("top_menu/press.png")
                 ):
        gtk.Button.__init__(self)
        # set topmenu tooltip.
        if tip_text:
            tooltip_text(self, tip_text)

        self.top_menu_normal = top_menu_normal
        self.top_menu_prelight = top_menu_prelight
        self.top_menu_press = top_menu_press
        self.top_menu_pixbuf_width = 40
        self.top_menu_pixbuf_height = 40
        self.menu = menu
        self.menu_show = False
        # set topmenu size.
        self.set_size_request(
            self.top_menu_pixbuf_width, 
            self.top_menu_pixbuf_height)
        # Init events.
        self.connect("expose-event", self.expose_topmenu)        
        self.connect("button-press-event", self.button_press_topmenu)
        self.connect("button-release-event", self.button_release_topmenu)
        self.connect("leave-notify-event", self.leave_notify_topmenu)
开发者ID:hailongqiu,项目名称:assembly-ide,代码行数:28,代码来源:top_menu.py


示例6: update

 def update(self, title="icon_pixbuf", name="Linux deepin", length="progress_buffer", _format="rmvb"):
     '''Update.'''
     # Update.
     self.title = title
     self.name = name
     self.length = length
     self.format = _format
     
     # Calculate item size.
     # self.title_padding_x = 10
     # self.title_padding_y = 5
     # (self.title_width, self.title_height) = get_content_size(self.title, DEFAULT_FONT_SIZE) #DEFAULT_FONT_SIZE
     # self.title_width = 20
     
     self.name_padding_x = 10
     self.name_padding_y = 5
     (self.name_width, self.name_height) = get_content_size(self.name, DEFAULT_FONT_SIZE) #DEFAULT_FONT_SIZE
     self.name_width = 80
     
     self.length_padding_x = 50
     self.length_padding_y = 5
     (self.length_width, self.length_height) = get_content_size(self.length, DEFAULT_FONT_SIZE) #DEFAULT_FONT_SIZE
     
     self.format_padding_x = 0
     self.format_padding_y = 5
     (self.format_width, self.format_height) = get_content_size(self.format, 8) #DEFAULT_FONT_SIZE        
     
     # ProgressBar buffer.
     self.progress_ratio = 0.0
     # self.progress_padding_x = 30
     self.progress_padding_x = 25
     self.progress_padding_y = 5
     self.progress_w, self.progress_h = 100, 10
     self.progress_buffer = ProgressBuffer()
     
     self.status_icon = None
     self.status_icon_press = None
     self.wait_icon = app_theme.get_pixbuf("transcoder/wait.png").get_pixbuf()
     self.wait_icon_press = app_theme.get_pixbuf("transcoder/wait_press.png").get_pixbuf()
     # stop conv.
     self.stop_icon = app_theme.get_pixbuf("transcoder/stop.png").get_pixbuf()        
     self.stop_icon_press = app_theme.get_pixbuf("transcoder/stop_press.png").get_pixbuf()
     # conv success.
     self.success_icon = app_theme.get_pixbuf("transcoder/success.png").get_pixbuf()
     self.success_icon_press = app_theme.get_pixbuf("transcoder/success_press.png").get_pixbuf()
     # staring conv.
     self.working_icon = app_theme.get_pixbuf("transcoder/working.png").get_pixbuf()
     self.working_icon_press = app_theme.get_pixbuf("transcoder/working_press.png").get_pixbuf()
     # error .
     self.error_icon = app_theme.get_pixbuf("transcoder/error.png").get_pixbuf()
     self.error_icon_press = app_theme.get_pixbuf("transcoder/error_press.png").get_pixbuf()
     # Init icon state.        
     self.set_status_icon("wait")        
     # set icon[position]->> x and y.
     self.status_icon_padding_x = 5
     self.status_icon_padding_y = 5        
     # get icon width and height .
     self.status_icon_w, self.status_icon_h = (self.status_icon.get_width(), self.status_icon.get_height())
开发者ID:Bruners,项目名称:deepin-media-player,代码行数:58,代码来源:conv_task_gui.py


示例7: __init__

 def __init__(self):
     self.one_close = app_theme.get_pixbuf("treeview/1-close.png")
     self.one_open  = app_theme.get_pixbuf("treeview/1-open.png")
     self.two_close = app_theme.get_pixbuf("treeview/2-close.png")
     self.two_open  = app_theme.get_pixbuf("treeview/2-open.png")
     self.three_close = app_theme.get_pixbuf("treeview/3-close.png")
     self.three_open  = app_theme.get_pixbuf("treeview/3-open.png")
     #
     self.tree_view_open  = app_theme.get_pixbuf("treeview/open.png")
     self.tree_view_close = app_theme.get_pixbuf("treeview/close.png")
     self.tree_view_right = app_theme.get_pixbuf("treeview/right.png")
     self.tree_view_bottom = app_theme.get_pixbuf("treeview/bottom.png")
     #
     self.listview_color = ui_theme.get_color("scrolledbar")
     self.play_list_vbox = gtk.VBox()
     #
     self.list_view_vbox = gtk.VBox()
     self.list_scroll_win   = ScrolledWindow(0, 0)
     self.list_scroll_win.set_policy(gtk.POLICY_NEVER, gtk.POLICY_ALWAYS)
     self.list_view    = ListView()
     #
     self.play_list_con = PlayListControl()
     #
     self.list_view_vbox.pack_start(self.list_scroll_win, True, True)
     self.list_view_vbox.pack_start(self.play_list_con, False, False)
     # 网络列表,搜索框.
     self.tree_scroll_win   = ScrolledWindow(0, 0)
     self.tree_scroll_win.set_policy(gtk.POLICY_NEVER, gtk.POLICY_ALWAYS)
     self.tree_view_vbox = gtk.VBox()
     self.tree_view     = TreeViewBase()
     self.search_ali    = gtk.Alignment(0, 0, 1, 1)
     self.search        = Search()
     self.search_ali.add(self.search)
     #
     self.search_ali.set_padding(7, 5, 12, 12)
     self.tree_view_vbox.pack_start(self.search_ali, False, False)
     self.tree_view_vbox.pack_start(self.tree_scroll_win, True, True)
     self.search_ali.connect("expose-event", self.search_ali_expose_event)
     #
     self.note_book = NoteBook()
     #
     self.list_view.on_draw_sub_item =  self.__listview_on_draw_sub_item
     self.list_view.columns.add_range(["filename", "time"])
     self.list_view.columns[0].width = 120
     self.list_view.columns[1].width = 95
     #
     self.note_book.hide_title()
     self.tree_view.paint_nodes_event = self.__treeview_paint_nodes_event
     #
     self.list_scroll_win.add_with_viewport(self.list_view)
     self.tree_scroll_win.add_with_viewport(self.tree_view)
     #self.note_book.add_layout1(self.list_scroll_win) 
     self.note_book.add_layout1(self.list_view_vbox) 
     self.note_book.add_layout2(self.tree_view_vbox)
     #self.play_list_vbox.pack_start(self.scroll_win, True, True)
     self.play_list_vbox.pack_start(self.note_book, True, True)
开发者ID:Bruners,项目名称:deepin-media-player,代码行数:56,代码来源:playlistview.py


示例8: __init_values

 def __init_values(self):
     # b [ bseek], f [ fseek]
     self.b_normal_pixbuf = app_theme.get_pixbuf("progressbar/bseek_normal.png")
     self.b_press_pixbuf = app_theme.get_pixbuf("progressbar/bseek_press.png")
     self.f_normal_pixbuf = app_theme.get_pixbuf("progressbar/fseek_normal.png")
     self.f_press_pixbuf = app_theme.get_pixbuf("progressbar/fseek_press.png")
     #
     w = self.b_normal_pixbuf.get_pixbuf().get_width()
     h = self.b_normal_pixbuf.get_pixbuf().get_height()
     self.set_size_request(w, h)
开发者ID:Bruners,项目名称:deepin-media-player,代码行数:10,代码来源:progressbar.py


示例9: __init_values

 def __init_values(self):
     self.clear_check = False
     self.search_none_color = app_theme.get_color("searchNone").get_color()
     self.search_input_color = app_theme.get_color("searchInput").get_color()
     #
     self.search_bg_pixbuf = app_theme.get_pixbuf("net_search/search_bg.png").get_pixbuf()
     self.clear_normal_pixbuf = app_theme.get_pixbuf("net_search/clean_normal.png").get_pixbuf()
     self.clear_hover_pixbuf  = app_theme.get_pixbuf("net_search/clean_hover.png").get_pixbuf()
     self.search_hover_pixbuf = app_theme.get_pixbuf("net_search/search_hover.png").get_pixbuf()
     self.search_normal_pixbuf = app_theme.get_pixbuf("net_search/search_normal.png").get_pixbuf()
开发者ID:Bruners,项目名称:deepin-media-player,代码行数:10,代码来源:net_search.py


示例10: __on_draw_item_fg

 def __on_draw_item_fg(self, cr, rect):
     top_pixbuf = app_theme.get_pixbuf("playlist/list_top.png").get_pixbuf()
     bottom_pixbuf = app_theme.get_pixbuf("playlist/list_bottom.png").get_pixbuf()
     #
     scroll_win = get_match_parent(self, "ScrolledWindow")
     vadjust = scroll_win.get_vadjustment()
     if vadjust.get_value() != vadjust.get_lower():
         draw_pixbuf(cr, top_pixbuf, 0, vadjust.get_value() - 1)
     if vadjust.get_value() + vadjust.get_page_size() != vadjust.get_upper():
         y = vadjust.get_value() + vadjust.get_page_size() - bottom_pixbuf.get_height()
         draw_pixbuf(cr, bottom_pixbuf, 0, y)
开发者ID:martyr-deepin,项目名称:deepin-media-player,代码行数:11,代码来源:listview.py


示例11: __init__

 def __init__(self):        
     '''application.'''
     self.__init_values()
     self.app = Application(False)
     # application set.
     app_w, app_h = 890, 590
     min_app_w, min_app_h = 480, 300
     self.app.set_default_size(min_app_w, min_app_h)
     self.app.window.set_default_size(app_w, app_h)
     # self.app.window.resize
     self.app.set_icon(app_theme.get_pixbuf("icon.ico"))
     self.app.set_skin_preview(app_theme.get_pixbuf("frame.png"))
     # set titlebar.
     self.app.add_titlebar(["theme", "menu", "max", "min", "close"],
                           app_theme.get_pixbuf("logo.png"),
                           _("Deepin Media Player"), " ", 
                           add_separator = False)
     #
     self.play_menus = PlayMenus()
     # 设置主题菜单.
     self.app.set_menu_callback(lambda button: self.play_menus.show_theme_menu(button))
     #
     self.main_ali = gtk.Alignment()
     self.main_vbox = gtk.VBox()
     self.main_ali.add(self.main_vbox)
     self.main_ali.set(0, 0, 1.0, 1.0)
     self.main_ali.set_padding(0, 2, 2, 2)
     '''movie screen. 电影播放屏幕.'''
     # 播放屏幕和播放列表的HBOX.
     self.play_list_view = PlayListView()
     self.screen_paned = Paned()
     self.screen_paned.paint_bottom_window = self.__paint_bottom_toolbar_background
     self.screen_frame = gtk.Alignment(0.0, 0.0, 1.0, 1.0)
     self.screen = gtk.DrawingArea()
     self.screen_frame.add(self.screen)
     self.top_toolbar = ToolBar()
     self.bottom_toolbar = BottomToolBar()
     # BUG: 当显示上部工具条的时候,画面抖动.
     self.screen_paned.add_top_widget(self.top_toolbar.hbox_hframe)
     self.screen_paned.add_bottom_widget(self.bottom_toolbar.vbox)
     #
     self.screen_frame_event = self.screen_paned
     self.screen_paned.screen = self.screen
     #
     self.screen_paned.add1(self.screen_frame)
     self.screen_paned.add2(self.play_list_view.play_list_vbox)
     #
     self.play_control_panel = BottomToolBar(False)
     #
     self.main_vbox.pack_start(self.screen_paned, True, True)
     self.main_vbox.pack_start(self.play_control_panel.vbox, False, False)
     #
     self.app.main_box.pack_start(self.main_ali, True, True)
开发者ID:hailongqiu,项目名称:new-deepin-media-player,代码行数:53,代码来源:gui.py


示例12: __init__

    def __init__(self,
                 active=False,
                 render_padding_x=0,
                 render_padding_y=0,
                 ):
        '''
        Initialize RadioButtonBuffer class.

        @param active: Set True to active buffer status, default is False.
        @param render_padding_x: Horizontal padding value, default is 0.
        @param render_padding_y: Vertical padding value, default is 0.
        '''
        gobject.GObject.__init__(self)
        #self.inactive_normal_dpixbuf = ui_theme.get_pixbuf("button/radio_button_inactive_normal.png")
        #self.active_normal_dpixbuf = ui_theme.get_pixbuf("button/radio_button_active_normal.png")
        #self.inactive_hover_dpixbuf = ui_theme.get_pixbuf("button/radio_button_inactive_hover.png")
        #self.active_hover_dpixbuf = ui_theme.get_pixbuf("button/radio_button_active_hover.png")
        #self.inactive_press_dpixbuf = ui_theme.get_pixbuf("button/radio_button_inactive_press.png")
        #self.active_press_dpixbuf = ui_theme.get_pixbuf("button/radio_button_active_press.png")
        self.active_dpixbuf = app_theme.get_pixbuf("mirror/check_box-2.png")

        self.render_padding_x = render_padding_x
        self.render_padding_y = render_padding_y

        pixbuf = self.active_dpixbuf.get_pixbuf()
        self.render_width = pixbuf.get_width()
        self.render_height = pixbuf.get_height()

        self.active = active
        self.button_state = self.STATE_NORMAL
开发者ID:kissthink,项目名称:deepin-store,代码行数:30,代码来源:preference.py


示例13: __init__

    def __init__(self, pkg_name, pkg_version, data_manager):
        '''
        init docs
        '''
        TreeItem.__init__(self)
        self.pkg_name = pkg_name
        self.pkg_version = pkg_version
        self.data_manager = data_manager
        self.icon_pixbuf = None
        
        info = data_manager.get_item_pkg_info(self.pkg_name)
        self.alias_name = info[1]
        self.short_desc = info[2]
        self.star_level = get_star_level(5.0)
        self.star_buffer = DscStarBuffer(pkg_name)

        self.grade_star = 0
        
        button_pixbuf = app_theme.get_pixbuf("button/uninstall_normal.png").get_pixbuf()
        (self.button_width, self.button_height) = button_pixbuf.get_width(), button_pixbuf.get_height()
        self.button_status = BUTTON_NORMAL
        
        self.status = self.STATUS_NORMAL
        self.status_text = ""
        self.progress_buffer = ProgressBuffer()
开发者ID:electricface,项目名称:deepin-software-center,代码行数:25,代码来源:uninstall_page.py


示例14: __init__

 def __init__(self, pkg_name, pkg_version, data_manager):
     '''
     init docs
     '''
     TreeItem.__init__(self)
     self.pkg_name = pkg_name
     self.pkg_version = pkg_version
     self.data_manager = data_manager
     self.icon_pixbuf = None
     
     (self.short_desc, star, self.alias_name) = data_manager.get_item_pkg_info(self.pkg_name)
     self.star_level = get_star_level(star)
     self.star_buffer = DscStarBuffer(pkg_name)
     
     self.grade_star = 0
     
     self.status = self.STATUS_READY_DOWNLOAD
     self.status_text = _("Analyzing dependencies")
     self.progress_buffer = ProgressBuffer()
     
     button_pixbuf = app_theme.get_pixbuf("button/start_normal.png").get_pixbuf()
     (self.button_width, self.button_height) = button_pixbuf.get_width(), button_pixbuf.get_height()
     self.button_status = BUTTON_NORMAL
     
     self.is_have_desktop_file = False
开发者ID:PeterDaveHello,项目名称:deepin-software-center,代码行数:25,代码来源:install_page.py


示例15: button_press_start_button

 def button_press_start_button(self, widget, event, desktops):
     pixbuf = app_theme.get_pixbuf("button/start_normal.png").get_pixbuf()
     desktop_infos = self.data_manager.get_pkg_desktop_info(desktops)
     global_event.emit("start-pkg",
                       self.alias_name,
                       desktop_infos,
                       (int(event.x), int(event.y), pixbuf.get_width() / 2, 0))
开发者ID:kissthink,项目名称:deepin-store,代码行数:7,代码来源:detail_page.py


示例16: __init__

    def __init__(self, pkg_name, pkg_version, data_manager):
        '''
        init docs
        '''
        TreeItem.__init__(self)
        self.pkg_name = pkg_name
        self.pkg_version = pkg_version
        self.data_manager = data_manager
        self.icon_pixbuf = None

        info = self.data_manager.get_item_pkg_info(self.pkg_name)
        self.alias_name = info[1]
        self.short_desc = info[2]
        self.star_level = get_star_level(5.0)
        self.star_buffer = DscStarBuffer(pkg_name)

        self.grade_star = 0

        self.status = self.STATUS_READY_DOWNLOAD
        self.status_text = _("Dependencies analyzing")
        self.progress_buffer = ProgressBuffer()

        button_pixbuf = app_theme.get_pixbuf("button/start_normal.png").get_pixbuf()
        (self.button_width, self.button_height) = button_pixbuf.get_width(), button_pixbuf.get_height()
        self.button_status = BUTTON_NORMAL

        ### TODO: is_installed status
        self.install_status = json.dumps([])
        self.desktops = []
开发者ID:kissthink,项目名称:deepin-store,代码行数:29,代码来源:install_page.py


示例17: __expose_event

 def __expose_event(self, widget, event):
     cr = widget.window.cairo_create()
     rect = widget.allocation
     # 画背景.
     bg_pixbuf = self.bg.get_pixbuf().scale_simple(rect.width, 
                                                   rect.height, 
                                                   gtk.gdk.INTERP_BILINEAR)
     x = rect.x
     y = rect.y
     draw_pixbuf(cr, bg_pixbuf, x, y)
     #
     if None != self.__index:
         cr.set_source_rgba(1, 1, 1, 0.1)
         cr.rectangle(x + 2, 
                      y + self.__index * self.__menu_height + 2, 
                      rect.width - 4, 
                      self.__menu_height - 4)
         cr.fill()
     #
     index = 0
     for item in self.menu_items:
         pixbuf, text = item.pixbuf, item.text
         if pixbuf:
             draw_pixbuf(cr, pixbuf, 
                         x + 8, 
                         y + index * self.__menu_height + self.__menu_height/2 - pixbuf.get_height()/2)
         draw_text(cr, text, 
                   x + 35, 
                   y + index * self.__menu_height + self.__menu_height/2 - get_text_size(text)[1]/2)
         if item.child_menus:
             pixbuf = app_theme.get_pixbuf("screen_mid/menu_child.png").get_pixbuf()
             draw_pixbuf(cr, pixbuf,
                         x + rect.width - 10, 
                         y + index * self.__menu_height + self.__menu_height/2 - pixbuf.get_height()/2)
         index += 1
开发者ID:Bruners,项目名称:deepin-media-player,代码行数:35,代码来源:movie_menu.py


示例18: is_cancel_button_area

 def is_cancel_button_area(self, column, offset_x, offset_y):
     cancel_pixbuf = app_theme.get_pixbuf("button/uninstall_cancel.png").get_pixbuf()
     return (column == 1
             and is_in_rect((offset_x, offset_y),
                            (self.get_column_widths()[column] - ITEM_CANCEL_BUTTON_PADDING_RIGHT,
                             (ITEM_HEIGHT - cancel_pixbuf.get_height()) / 2,
                             cancel_pixbuf.get_width(),
                             cancel_pixbuf.get_height())))
开发者ID:PeterDaveHello,项目名称:deepin-software-center,代码行数:8,代码来源:uninstall_page.py


示例19: is_in_expand_button_area

 def is_in_expand_button_area(self, column, offset_x, offset_y):
     pixbuf = app_theme.get_pixbuf("sidebar/close.png").get_pixbuf()
     
     return is_in_rect((offset_x, offset_y),
                       (CATEGORY_VIEW_WIDTH - CATEGORY_ITEM_EXPAND_PADDING_X,
                        (self.get_height() - pixbuf.get_height()) / 2,
                        pixbuf.get_width(),
                        pixbuf.get_height()))
开发者ID:electricface,项目名称:deepin-software-center,代码行数:8,代码来源:home_page.py


示例20: is_stop_button_can_click

 def is_stop_button_can_click(self, column, offset_x, offset_y):
     pixbuf = app_theme.get_pixbuf("button/stop.png").get_pixbuf()
     return (column == 1
             and is_in_rect((offset_x, offset_y),
                            (self.get_column_widths()[column] - ITEM_CANCEL_BUTTON_PADDING_RIGHT,
                             (ITEM_HEIGHT - pixbuf.get_height()) / 2,
                             pixbuf.get_width(),
                             pixbuf.get_height())))
开发者ID:kissthink,项目名称:deepin-store,代码行数:8,代码来源:install_page.py



注:本文中的skin.app_theme.get_pixbuf函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python sklearn.clone函数代码示例发布时间:2022-05-27
下一篇:
Python skin.TemplatedListFonts类代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap