Python,Linux,桌面环境 [英] Python, Linux, Desktop Environment
问题描述
所以,我已经在python中编写了我的第一个GUI应用程序。我把它变成了一个
二进制.exe和.app,它们分别在Windows和Mac上运行,但是在我的Linux盒子上,我在那里编写了这个东西,我仍然需要转到
命令行和./myscript.py。我该怎么做才能使它成为点击和
运行在Linux上的KDE或Gnome中的应用程序类型?
So, I''ve written my first GUI app in python. I''ve turned it into a
binary .exe and .app that runs on Windows and Mac respectively, but on
my Linux box, where I wrote the thing, I still have to drop to the
command line and ./myscript.py. What can I do to make it a "click and
run" sort of application in KDE or Gnome on Linux?
推荐答案
je ********* @ gmail.com 写道:
所以,我已经在python中编写了我的第一个GUI应用程序。我把它变成了一个分别在Windows和Mac上运行的二进制.exe和.app,但是在我的Linux盒子上,在那里我写了这个东西,我还是要放到
命令行和./myscript.py。我该怎么做才能使其成为点击并运行在Linux上的KDE或Gnome中的应用程序类型?
So, I''ve written my first GUI app in python. I''ve turned it into a
binary .exe and .app that runs on Windows and Mac respectively, but on
my Linux box, where I wrote the thing, I still have to drop to the
command line and ./myscript.py. What can I do to make it a "click and
run" sort of application in KDE or Gnome on Linux?
有* no *" click and run"在Linux上,因为GUI是一个选项,
不是操作系统的一部分。
您正在寻找的是WM / DesktopManager特定的。你会在Gnome和KDE手册中找到
答案。
-
bruno desthuilliers
python -c" print''@''。join([''。''。join([w [:: - 1] for w in p.split(''。'')])for
'o **** @ xiludom.gro'中的
p.split(''@'')])"
There are *no* "click and run" on linux, since the GUI is an option,
not a part of the OS.
What you''re looking for is WM/DesktopManager specific. You''ll find the
answers in the Gnome and KDE manuals.
--
bruno desthuilliers
python -c "print ''@''.join([''.''.join([w[::-1] for w in p.split(''.'')]) for
p in ''o****@xiludom.gro''.split(''@'')])"
je ********* @ gmail.com 写道:
所以,我在python中编写了我的第一个GUI应用程序。我把它变成了一个分别在Windows和Mac上运行的二进制.exe和.app,但是在我的Linux盒子上,在那里我写了这个东西,我还是要放到
命令行和./myscript.py。我该怎么做才能使其成为点击并运行在Linux上的KDE或Gnome中的应用程序类型?
So, I''ve written my first GUI app in python. I''ve turned it into a
binary .exe and .app that runs on Windows and Mac respectively, but on
my Linux box, where I wrote the thing, I still have to drop to the
command line and ./myscript.py. What can I do to make it a "click and
run" sort of application in KDE or Gnome on Linux?
有* no *" click and run"在Linux上,因为GUI是一个选项,
不是操作系统的一部分。
您正在寻找的是WM / DesktopManager特定的。你会在Gnome和KDE手册中找到
答案。
-
bruno desthuilliers
python -c" print''@''。join([''。''。join([w [:: - 1] for w in p.split(''。'')])for
'o **** @ xiludom.gro'中的
p。分裂(''''')])"
There are *no* "click and run" on linux, since the GUI is an option,
not a part of the OS.
What you''re looking for is WM/DesktopManager specific. You''ll find the
answers in the Gnome and KDE manuals.
--
bruno desthuilliers
python -c "print ''@''.join([''.''.join([w[::-1] for w in p.split(''.'')]) for
p in ''o****@xiludom.gro''.split(''@'')])"
je*********@gmail.com 写道:
je*********@gmail.com wrote:
所以,我已经在python中编写了我的第一个GUI应用程序。我把它变成了一个分别在Windows和Mac上运行的二进制.exe和.app,但是在我的Linux盒子上,在那里我写了这个东西,我还是要放到
命令行和./myscript.py。我该怎么做才能使其成为点击并运行在Linux上使用KDE或Gnome的应用程序?
So, I''ve written my first GUI app in python. I''ve turned it into a
binary .exe and .app that runs on Windows and Mac respectively, but on
my Linux box, where I wrote the thing, I still have to drop to the
command line and ./myscript.py. What can I do to make it a "click and
run" sort of application in KDE or Gnome on Linux?
我真的不明白你的意思......你试过简单的
创建一个快捷方式
指向你的script.py?
那应该让它运行点击......
HTH,
Yves
I don''t really understand what you mean... Have you tried simply
creating a "shortcut"
that points to your script.py?
That should make it run with a click...
HTH,
Yves
这篇关于Python,Linux,桌面环境的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!