桌面环境中的Python [英] Python in a desktop environment

查看:67
本文介绍了桌面环境中的Python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您有一个应用程序即将开始开发

,您想要跨平台(至少Mac和Windows),

你会建议吗?使用c ++和Python?


我在问,因为我们原本考虑做c#但是今年参加PyCon后我已经重新考虑了。我们已经使用Python为网站提供了b $ b,我想用一个带有Python的c ++后端

GUI可以很好地工作,并且很容易移植。 />

任何意见?

If you had an application that you were about to begin development on
which you wanted to be cross platform (at least Mac and Windows),
would you suggest using c++ and Python?

I''m asking because we were originally thinking about doing c# but
after attending PyCon this year I''m reconsidering. We are already
using Python for the website and I figure a c++ backend w/ a Python
GUI may work really well, and would be pretty easy to port.

Any opinions?

推荐答案

3月10日,9:23 pm,大卫克拉默" < dcra ... @ gmail.comwrote:
On Mar 10, 9:23 pm, "David Cramer" <dcra...@gmail.comwrote:

如果你有一个应用程序,你即将开始开发

你想要跨平台(至少是Mac和Windows),你会建议使用c ++和Python吗?

If you had an application that you were about to begin development on
which you wanted to be cross platform (at least Mac and Windows),
would you suggest using c++ and Python?



根据你想要做什么,一个纯粹的python解决方案

可能就足够了,虽然显然是C / C ++后端将是便携式的

。在GUI方面; GTK或QT可能是你最好的选择

(我的个人偏好是pygtk),虽然Wxidgets可能是一个可行的

选项,如果其他人不是(我''我不确定GTK / QT如何支持

在OSX上。你的问题有点含糊,所以这个回答含糊不清

。需要更多信息以更具体的方式回答。


问候,

Jordan

Depending on what exactly you''re trying to do, a pure python solution
may be sufficient, though obviously a C/C++ backend would be portable
as well. In terms of GUI; GTK or QT would probably be your best bet
(my personal preference is for pygtk), though Wxidgets may be a viable
option if the others are not (I''m not sure how advanced GTK/QT support
is on OSX). Your question is kind of vague, so this response is vague
as well. More info is needed to answer in a more specific way.

Regards,
Jordan

David Cramer写道:
David Cramer wrote:

如果你有一个应用程序,你即将开始开发

你想成为跨平台(至少Mac和Windows),你会建议使用c ++和Python
吗?
If you had an application that you were about to begin development on
which you wanted to be cross platform (at least Mac and Windows),
would you suggest using c++ and Python?



我会强烈考虑一个纯python解决方案(我会选择wxpython),

但是如果我需要编写后端代码用较低级别语言的东西我会用b而不是C ++来表示。

I''d strongly consider a pure python solution (I''d choose wxpython),
but if I needed to code backend stuff in a lower level language I''d
use C rather than C++.


3月10日,10:52下午,sjdevn ... @ yahoo.com < sjdevn ... @ yahoo.com>

写道:
On Mar 10, 10:52 pm, "sjdevn...@yahoo.com" <sjdevn...@yahoo.com>
wrote:

David Cramer写道:
David Cramer wrote:

如果你有一个应用程序即将开始开发

,你想要跨平台(至少是Mac和Windows),

你会建议使用c ++和Python吗?
If you had an application that you were about to begin development on
which you wanted to be cross platform (at least Mac and Windows),
would you suggest using c++ and Python?



我会强烈考虑一个纯python解决方案(我会选择wxpython),

但是如果我需要编写后端代码我会用较低级别的语言来使用C而不是C ++。


I''d strongly consider a pure python solution (I''d choose wxpython),
but if I needed to code backend stuff in a lower level language I''d
use C rather than C++.



我们希望它非常强大,而python并不是最快的语言,或者是开销最低的语言:)

Well we want it to be very robust, and python isn''t exactly the
fastest language, or one with the lowest overhead :)


这篇关于桌面环境中的Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆