简体   繁体   English

Windows上的python + gtk3?

[英]python + gtk3 on windows?

I'm trying to port a small app to windows (I made it for ubuntu initally), it's written on python + gtk3... I know that gtk3 is hard to make it work on windows (even on c++), but is it possible to make it work on Windows with Python? 我正在尝试将一个小型应用程序移植到Windows(我最初是为ubuntu制作的),它是用python + gtk3编写的...我知道gtk3很难使它在Windows(甚至在c ++)上也可以工作有可能使其在Windows上使用Python?

I do not want to re-write it on another toolkit, and if so, it will probably be wxWidgets , because I'm using an embedded terminal on it ( Vte.Terminal() ), that IIRC is part of gtk3 too. 我不想在另一个工具包上重写它,如果是这样,它可能是wxWidgets ,因为我在它Vte.Terminal()使用了嵌入式终端( Vte.Terminal() ),所以IIRC也是gtk3的一部分。

If it's not possible, is there a way to make a terminal widget on wxPython in Windows? 如果不可能,是否有办法在Windows的wxPython上制作终端窗口小部件?

Id doesn't look like you can use gtk3 on windows quite yet, although it looks like development for such is very active at this point link . Id看起来似乎还不能在Windows上使用gtk3,尽管在这一点上link的开发非常活跃。 You may also want to check out this post because it may help with your gtk3 question. 您可能还需要查看这篇文章,因为它可能会对您的gtk3问题有所帮助。 In response to your question on whether you can create a terminal in wxPython, you'll want to look up this project and check out this stack overflow question . 在回答有关是否可以在wxPython中创建终端的问题时,您将需要查找该项目并检查此堆栈溢出问题 Also, a very similar question to what yours sounds like was asked here . 另外, 这里还提出一个与您的听起来非常相似的问题。 Please let me know if that doesn't help! 如果这没有帮助,请告诉我!

Gtk3 works fine on windows, there is an unofficial .exe from a french man site: http://www.tarnyko.net Gtk3在Windows上可以正常工作,法国人网站上有一个非官方的.exe文件: http ://www.tarnyko.net

I'm developing with gtk3 on windows in this moment, I use gtk 3.6.1. 目前,我正在Windows上使用gtk3进行开发,我使用gtk 3.6.1。

I think, the best way is installing python and gtk3 with msys2. 我认为,最好的方法是使用msys2安装python和gtk3。 firstly install msys2 and install python and gtk3 using msys2. 首先安装msys2,然后使用msys2安装python和gtk3。 search on Google "how to install python gobject to msys2" 在Google上搜索“如何将python gobject安装到msys2”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM