我自己一直在学习GTK3,现在我被困在Gtk.DrawingArea上了.与GTK中的大多数小部件和功能一样,似乎缺乏关于此的更新文档和教程.关于我发现的内容(希望这将有助于其他一些失去的googlers)的参考,lazka的自动生成的文档是我最好的资源:
http://lazka.github.io/pgi-docs/Gtk-3.0/classes/index.html
但是,绘图区域页面没有描述的方法.
http://lazka.github.io/pgi-docs/Gtk-3.0/classes/DrawingArea.html
这让我相信我对GTK和这个小部件有一个根本的误解,但我找不到任何解释如何使用它的东西!我能找到的唯一教程是这些,但它们都适用于旧版本;
3是这些教程中最好的,但我似乎无法在GTK3中使用它,老实说它非常先进.有些事情也被弃用,替换似乎非常神秘,并且不清楚它们如何与DrawingArea一起工作:http: //lazka.github.io/pgi-docs/Gtk-3.0/classes/Widget.html#Gtk.Widget. set_style
官方教程没有关于它的部分,并且在很长一段时间内没有显着更新:
http://python-gtk-3-tutorial.readthedocs.org/en/latest/objects.html
https://github.com/sebp/PyGObject-Tutorial
我现在的问题是,是否有人可以帮助我了解如何使用Gtk.DrawingArea绘制?那里有gtk3教程吗?
我目前的目标是根据算法的输出自动在绘图区域绘制黑点,并显示结果.我会展示我的代码,但我几乎没有任何东西.
我正在尝试在最新的Arch Linux家庭服务器上设置rutorrent,但我无法让它运行,我认为从缺乏经验和过时的文档.
我无法与nxinx交流.当我在nginx上显示rutorrent时,它将无法连接到rtorrent,并且会在许多其他插件错误中出现此错误:
Bad response from server: (200 [parsererror,getuisettings])
Run Code Online (Sandbox Code Playgroud)
2015/07/24 17:29:49 [error] 11837#0: *19 upstream prematurely closed connection while reading response header from upstream, client: 192.168.x.<my remote machine>, server: localhost, request: "GET / HTTP/1.1", upstream: "scgi://unix:/home/user/scgi.socket:", host: "192.168.x.<my local nginx server>"
Run Code Online (Sandbox Code Playgroud)
502 Bad Gateway
Run Code Online (Sandbox Code Playgroud)
(17:50:40) Closed XMLRPC log.
Run Code Online (Sandbox Code Playgroud)
以下是我的配置文件的相关部分:
#encoding_list utf-8
scgi_local = /home/user/scgi.socket
execute = chmod,ug=rw\,o=,/home/user/scgi.socket
execute = chgrp,http,/home/user/scgi.socket
#scgi_port = 127.0.0.1:5000
Run Code Online (Sandbox Code Playgroud)
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
#tcp_nopush on; …Run Code Online (Sandbox Code Playgroud)