我想知道(以编程方式)哪个窗口具有当前焦点。是否有一种独立于窗口管理器的方式来发现它?
否则,如何确定 Compiz 或 Metacity 中哪个窗口具有焦点?
python programming window-manager window application-development
我有一些用于日常任务的小脚本。它们需要简单的参数才能运行。与其从终端运行它们,我更愿意从菜单中选择一些东西,显示一个带有字段的简单窗口以输入参数,单击“开始”按钮并运行脚本。我看过 GTK+、Qt 等的描述,但我不确定从哪里开始。
我想要:
我开始了一个业余爱好项目,并认为如果有一些合理可达到的标准,我不妨朝那个方向努力。尝试在 #ubuntu-app-devel 上询问,但该频道似乎已经死了。
快速为我生成了一个gpg密钥:
quickly share
Get Launchpad Settings
The authorization page:
(https://launchpad.net/+authorize-token?oauth_token=*******&allow_permission=DESKTOP_INTEGRATION)
should be opening in your browser. Use your browser to authorize
this program to access Launchpad on your behalf.
Waiting to hear from Launchpad about your decision...
Launchpad connection is ok
It seems you don't have a gpg key on your computer. Do you want to create one (this may take a while)? y/[n]: y
Not enough random bytes available. Please do some other work to give
the OS a …Run Code Online (Sandbox Code Playgroud) 我正在编写一个基于选项卡的 Python 应用程序,我不希望它有任何额外的弹出对话框。
我想使用该Gtk.AboutDialog功能,但不希望它显示为单独的窗口。相反,我希望将它嵌入到我的Gtk.Notebook(我用 Glade 创建的)选项卡之一中。
我找不到任何明显的方法来做到这一点。有没有人有任何指示?
我已经创建了一个 Quickly 应用程序,我正在尝试创建一个包以通过软件中心分发它。
然而,每当我试图在快速包装命令(package,share,release或submitubuntu),失败没有告诉我到底为什么。
我如何解决包装故障,以便我可以对其进行调查或寻求帮助?
我正在编写一个 Ubuntu Touch QML 应用程序,用于从相机设备捕获和处理图像。处理由一个 C++ 插件完成,我将图像的 URL 传递给该插件。
我可以成功保存图像并从 C++ 插件加载它们,但我宁愿不必先将图像保存在文件系统上,而是将内存中的相机预览传递给插件。
给定我从相机 ( image://camera/preview_1)获取的预览 URL ,我猜我应该能够获得对"camera" 图像提供者的引用,然后使用requestImage()方法来获取图像。
但是,我一直无法弄清楚如何获得camera图像提供者。这是代码:
QString Decoder::decodeImageQML(const QUrl &imgUrl)
{
/*
* @imgUrl: URL to the camera preview. E.g. image://camera/preview_1
*/
QQmlEngine * engine;
QQuickImageProvider *imageProvider = 0;
// FIXME: this does not work, I'm not sure how to get hold of
// the image provider
imageProvider = engine->imageProvider("camera");
QImage image = imageProvider->requestImage(("preview_1", &size, QSize());
return Decoder::decodeImage(image);
}
Run Code Online (Sandbox Code Playgroud)
如何获得对 …
我听说 Ubuntu 13.10 将提供Smart Scopes技术。
什么是智能示波器?
我想开始为 Ubuntu 编写 Scope。
有哪些编程语言可用,我应该选择什么?
我写了一个应用程序来创建和使用自己的密钥环。我想拥有带有机密属性的密钥环,并通过 U1 进行所有同步,以便在所有 Linux 设备上都可以使用相同的密码。
http://binbrain.github.com/OpenSesame/
我正在寻找涵盖上述问题的官方文档或指针。
security python ubuntu-one gnome-keyring application-development
python ×3
programming ×2
quickly ×2
scopes ×2
12.04 ×1
c++ ×1
development ×1
gnupg ×1
gtk ×1
gui ×1
launchpad ×1
packaging ×1
pygi ×1
qml ×1
qt ×1
scripts ×1
security ×1
ubuntu-one ×1
ubuntu-touch ×1
window ×1