获取我在 Blackberry 或其他移动平台上编写的 Python 程序?

发布于 2024-11-09 09:33:46 字数 209 浏览 0 评论 0原文

到目前为止,该程序仅在我的电脑上运行。

我一直在 StackOverflow 上搜索,发现了 RhoMobile 的 Rhodes,它允许您用 Ruby 编写一次应用程序,然后在多个移动平台上运行它:iPhone、Symbian、Android、BlackBerry 和 Windows Mobile。 Python 有类似的东西吗?如果不是的话我该怎么做呢?

提前致谢!

The said program runs only on my PC as of now.

I've been searching through StackOverflow, and I've found out about RhoMobile's Rhodes which allows you to write the app in Ruby once and run it in multiple mobile platforms: iPhone, Symbian, Android, BlackBerry, and Windows Mobile. Is there anything similar for Python? If not how would I go about doing it?

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

甜宝宝 2024-11-16 09:33:46

您可以使用 http://pyjs.org/ 上的 PyJS python-to-javascript 交叉“编译器”来制作将您的程序转换为 Web 应用程序,可能存储在本地。这可以在任何具有支持 JavaScript 的浏览器的移动设备上运行(现在很常见,尽管几年前情况并非如此)。

但它仍然非常有问题......非常......

You can use the PyJS python-to-javascript cross-"compiler" at http://pyjs.org/ to make your program into a web application, possibly locally stored. This would work on any mobile device with a competent browser with javascript enabled (pretty common nowadays, though it was not the case a few years ago).

It's still extremely buggy though... extremely...

聽兲甴掵 2024-11-16 09:33:46

老问题,但 Python 在 BlackBerry 上的新可能性,但仅限于 PlayBook 和即将推出的 BB10 设备。有一个名为 BlackBerry-Py (BB-Py) 的项目,您可以在 http://blackberry-py 中了解该项目。 microcode.ca/

它使用 PySide 端口并使用设备上预安装的 Python 3.2 运行时以及 RIM 产品 Qt 端口。

免责声明:我是项目负责人之一。

Old question, but new possibility for Python on BlackBerry, but only on the PlayBook and upcoming BB10 devices. There's a project called BlackBerry-Py (BB-Py) which you can read about at http://blackberry-py.microcode.ca/ .

It uses a port of PySide and uses the Python 3.2 runtime that's pre-installed on the devices as well as the RIM-product Qt port.

Disclaimer: I'm one of the project leads.

淑女气质 2024-11-16 09:33:46

鉴于您列出的平台数量,

iPhone、Symbian、Android、黑莓、
和 Windows 移动

我建议您研究一个可以将逻辑集成到其中的 Web 框架。我知道 Django 很受欢迎。在您的应用程序上放置网络前端确实意味着您的用户必须连接到互联网才能使用您的应用程序,并且您必须将其公开托管在互联网上 - 但我认为优点远远超过缺点。

如果您开发在手机上运行的应用程序,则必须解决您希望其运行的每个平台;相反,如果您将应用程序托管在网络上,则任何符合标准的浏览器都应该能够向用户展示您的应用程序。这也意味着应用程序不依赖于设备。如果用户更换手机或丢失手机,应用程序(及其数据)不会丢失或受到损害。

这也意味着用户可以从他们的台式机、平板电脑、上网本、PS3、连接 wifi 的烤面包机等访问该应用程序。

我知道这并不是您真正想要的;它对您的应用程序的基本设计提出建议;但根据您发布的有关该应用程序的少量信息,没有任何迹象表明它“不能”使用符合标准的技术托管在网络上。

FWIW-让移动应用程序更加“面向未来”最终只会带来回报。移动平台的变化速度比任何其他消费技术都要快。

我的 0.02 美元

Given the number of platforms you listed,

iPhone, Symbian, Android, BlackBerry,
and Windows Mobile

I'd suggest you look into a web framework you can integrate your logic into. I know Django is quite popular. Putting a web-frontend on your app does mean your users do have to be connected to the Internet to use your application and you have to have it hosted publicly on the Internet- but I think the Pros far outweigh the Cons.

If you develop your application to run on the phone, you have to address every platform you want it to run on; conversely, if you host your app on the web, any standards compliant browser should be able to present your application to the user. This also means the application isn't tied to the device. Should the user change phones, or loose their phone- the application (and their data) is not lost or compromised.

This also means the users can access the application from their desktop, tablet, nettop, PS3, wifi-connected toaster etc.

I know this isn't really what you are looking for; its a suggestion to the fundamental design of your application; but with the little info you've posted about the application- there was nothing suggesting it 'can not' be hosted on a the web using standards compliant technologies.

FWIW- making a mobile application more 'future proof' will only pay out in the end. mobile platforms change faster then just about any other consumer technology.

My $0.02

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文