コード例 #1
0
ファイル: test_girdata.py プロジェクト: davelab6/pgi-docgen
 def test_get_class_image_dir(self):
     self.assertTrue(os.path.isdir(get_class_image_dir("Gtk", "3.0")))
コード例 #2
0
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.

import os
import re
import requests
from multiprocessing import Pool

import pgi

pgi.require_version("Gtk", "3.0")

from pgi.repository import Gtk
from pgidocgen.girdata import get_class_image_dir

DESTINATION = get_class_image_dir("Gtk", "3.0")

GTK_MAPPING = {
    "Button": "button",
    "Switch": "switch",
    "ToggleButton": "toggle-button",
    "CheckButton": "check-button",
    "LinkButton": "link-button",
    "MenuButton": "menu-button",
    "LockButton": "lock-button",
    "Entry": "entry",
    "SearchEntry": "search-entry",
    "RadioButton": "radio-group",
    "Label": "label",
    "AccelLabel": "accel-label",
    "ComboBox": "combo-box",
コード例 #3
0
 def test_get_class_image_dir(self):
     self.assertTrue(os.path.isdir(get_class_image_dir("Gtk", "3.0")))
コード例 #4
0
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.

import os
import re
import requests
from multiprocessing import Pool

import pgi
pgi.require_version("Gtk", "3.0")

from pgi.repository import Gtk
from pgidocgen.girdata import get_class_image_dir


DESTINATION = get_class_image_dir("Gtk", "3.0")

GTK_MAPPING = {
    "Button": "button",
    "Switch": "switch",
    "ToggleButton": "toggle-button",
    "CheckButton": "check-button",
    "LinkButton": "link-button",
    "MenuButton": "menu-button",
    "LockButton": "lock-button",
    "Entry": "entry",
    "SearchEntry": "search-entry",
    "RadioButton": "radio-group",
    "Label": "label",
    "AccelLabel": "accel-label",
    "ComboBox": "combo-box",