gobject-introspection

    1熱度

    1回答

    我試圖讓old piece of software重新開始工作。它是一個獨立的數據庫客戶端,它的圖形界面被描述爲python-glade並且使用/使用了python模塊gtk。 當我上次使用它時,它已經是兩三年前的事了,那時它可以剛開箱即可安裝。我不知道它工作的不同版本庫。 我最初想分離出它的依賴在虛擬環境中,但他們兩個都pygtk和gobject,這似乎是難以在Linux上使用pip安裝,恐怕我

    0熱度

    1回答

    我做在python import ctypes, ctypes.util from gi.repository import WebKit, JSCore, GLib, Gtk import sys webkit = ctypes.CDLL(ctypes.util.find_library('webkitgtk-3.0')) jscore = ctypes.CDLL(ctypes.uti

    1熱度

    1回答

    我正在學習Python和Gtk 3,使用GObject內省。我已經做了一些樣品,並且我開始瞭解它是如何工作的。但有一件事我不明白,我怎樣才能通過gpointer param? 我試圖用誰接收緩衝區(與gpointer)的功能,我總是與此消息結束: 不能爲物業`像素從LP_c_ubyte轉換價值gpointer (LP_c_ubyte是我的最後一次嘗試,但我已經證明了很多類型)

    -1熱度

    3回答

    對於構建GTK gobject-introspection-1.44.0是必需的,它被配置爲沒有錯誤,但在make我得到一個錯誤列表。 CC _giscanner_la-giscannermodule.lo giscanner/giscannermodule.c:42:1: warning: return type defaults to 'int' [-Wreturn-type] gisc

    1熱度

    1回答

    我不明白2 python gtk3軟件包的區別和要求。 一個是ActiveState的pygir-ctypes的由pypm安裝包,另一種是標準Linux(I使用Ubuntu)蟒GObject的內省。 如果您運行基於Linux的操作系統,在https://python-gtk-3-tutorial.readthedocs.org/en/latest/install.html上的gobject-int

    6熱度

    1回答

    首先代碼: from gi.repository import Gtk, GtkSource, GObject import os.path import shelve class MusicCollection(object): def __init__(self): self.builder = Gtk.Builder() self.glade_f

    8熱度

    1回答

    我打包通過gobject內省依賴於幾個C庫的python應用程序。我想確保至少安裝了glib中的python模塊(即gi模塊,在Debian中打包爲python-gi,我不是在討論已棄用的PyGObject模塊)。將它作爲常規依賴項添加會導致安裝失敗,因爲它不在Pypi中。 我該如何申報?我看了一個setuptool文檔,沒有看到這個技巧。 謝謝。 相關問題: Bundling GTK3+ wit

    3熱度

    1回答

    我正在嘗試安裝特拉維斯Getting Things GNOME!。我.travis.yml: language: python python: - '3.3' before_install: - sudo apt-get update - sudo apt-get install -qq python3-gi gir1.2-gtk-3.0 virtuale

    1熱度

    1回答

    我正在編寫一個gnome-shell擴展,顯示手機(或電力)等預付卡的當前餘額。因爲這需要給定服務的憑證,所以我不想將密碼存儲在gsettings中,而是作爲gnome keyring中的條目存儲。 目前,我用用 const GnomeKeyring = imports.gi.GnomeKeyring; GnomeKeyring.unlock_sync(null, null) // the

    0熱度

    1回答

    我知道您需要在PyGObject中繼承Gtk.DrawingArea以創建自定義小部件。然後,您的draw信號連接到一個回調,看起來像這樣: def on_draw(drawing_area, cr): # do something with cr return False 要問了重繪,你會打電話my_widget.queue_draw()。 現在,我知道您可能會要求使用m