File: icons.py

package info (click to toggle)
pyxrd 0.8.4-6
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 7,848 kB
  • sloc: python: 26,500; sh: 301; makefile: 128
file content (23 lines) | stat: -rw-r--r-- 1,129 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# coding=UTF-8
# ex:ts=4:sw=4:et=on

# Copyright (c) 2013, Mathijs Dumon
# All rights reserved.
# Complete license can be found in the LICENSE file.

#TODO make this gtk agnostic

from importlib_resources import resource_filename # @UnresolvedImport
import gi
gi.require_version('Gtk', '3.0')  # @UndefinedVariable
from gi.repository import GdkPixbuf  # @UnresolvedImport

def get_icon_list():
    return [
        GdkPixbuf.Pixbuf.new_from_file(resource_filename(__name__, "icons/pyxrd_icon_16x16.png")), #@UndefinedVariable 
        GdkPixbuf.Pixbuf.new_from_file(resource_filename(__name__, "icons/pyxrd_icon_24x24.png")), #@UndefinedVariable
        GdkPixbuf.Pixbuf.new_from_file(resource_filename(__name__, "icons/pyxrd_icon_32x32.png")), #@UndefinedVariable
        GdkPixbuf.Pixbuf.new_from_file(resource_filename(__name__, "icons/pyxrd_icon_48x48.png")), #@UndefinedVariable
        GdkPixbuf.Pixbuf.new_from_file(resource_filename(__name__, "icons/pyxrd_icon_64x64.png")), #@UndefinedVariable
        GdkPixbuf.Pixbuf.new_from_file(resource_filename(__name__, "icons/pyxrd_icon_128x128.png")) #@UndefinedVariable
    ]