انجمنهای فارسی اوبونتو
کمک و پشتیبانی => برنامهسازی => نویسنده: mehrzadmo در 28 آذر 1393، 02:44 بظ
-
من یه کتابخانه برای طراحی رابط کاربری نیاز دارم . که توی پایتون ازش استفاده کنم .
طبق جستجویی که داشتم کتابخانه هایی مثل wxPython , TKinter , PyQT , PyGTK , .. وجود داره .
من میخوام که :
1- این کتابخونه هم روی لینوکس و هم روی ویندوز قابل اجرا باشه .
2- حدالامکان ساده باشه .
3- ظاهر امروزی داشته باشه
4- یک محیطی باشه که بتونم بدون کد نویسی GUI رو طراحی کنم .
پیشنهاد شما کدومه و چرا ؟
-
Tkinter و Qt
-
خب کیوت خیلی خوبه، طرّاحیاش راحته، کدنویسیاش از ++C خام روونتره و روی همهی سیستمعاملها پورت شده
-
ممنون از توجهتون .
نظرتون در مورد wxPython چیه ؟ IDE هست که بشه توش محیط رو طراحی کرد ؟ صرفا مشکلم حجم و وسعت QT هست !
-
اون هم خوبه، ولی محیطی برای طرّاحی GUI ندیدم براش
-
ممنون از توجهتون .
نظرتون در مورد wxPython چیه ؟ IDE هست که بشه توش محیط رو طراحی کرد ؟ صرفا مشکلم حجم و وسعت QT هست !
ببین من خودم پایتون کار میکنم
بعد از کلی سرو کله زدن با کیوت به این نتیجه رسیدم بیام تحت وب کار کنم .نرم افزار تحت وب هم به نظر من دستت خیلی بیشتر بازه
من با جنگو مثلا یک نرم افزار یک شرکت رو درست کردم و غم و غصه اینو ندارم که نرم افزارم کراس پلتفرم هست یا نیست
با کمی بوت استرپ حتی قابلیت شکل دهی در موبایل و تبلت هم بهش دادم که فوق العاده شده
وقتی به مدیر شرکت پروژه رو نشون دادم از نرم افزار قبلیشون ناراحت بود چون کلی پیش نیاز برای نصب داشته و شرکت اینا با 80 کامپیوتر نصب کردن این همه نرم افزار براشون مشکل بوده
الانم که براشون اینکار رو انجام دادم یک سرور هم براشون ران کردم هم وایرلس و هم تو شبکه داخلی کار میکنن
-
اون هم خوبه، ولی محیطی برای طرّاحی GUI ندیدم براش
wxGlade
-
اون هم خوبه، ولی محیطی برای طرّاحی GUI ندیدم براش
wxGlade
گلید هم هست، ولی کار باهاش سخته، همون کد زدن آسونتره به نظرم
-
البته یه گزینهی دیگه هم هست، Boa Constructor که به هرحال هرکدوم سختیهای خاص خودشو داره، اما به نظرم حداقل از اینکه بخوای کل GUI رو با کد طراحی کنی، راحتتره.
من اصلا با کیوت موافق نیستم چون مجوز جالبی نداره!
اینو از ضمیمهی کتاب A Byte of Python اینجا آوردم، تصمیم نهایی با دوستمون خواهد بود:
Graphical Software
GUI Libraries using Python - you need these to create your own graphical programs using Python. You
can create your own IrfanView or Kuickshow or anything like that using the GUI libraries with their Py-
thon bindings. Bindings are what allow you to write programs in Python and use the libraries which are
themselves written in C or C++ or other languages.
There are lots of choices for GUI using Python:
• PyQt. This is the Python binding for the Qt toolkit which is the foundation upon which the KDE is
built. Qt is extremely easy to use and very powerful especially due to the Qt Designer and the amaz-
ing Qt documentation. You can use it for free on Linux but you will have to pay for it if you want to
use it on Windows. PyQt is free if you want to create free (GPL'ed) software on Linux/Unix and paid
if you want to create proprietary software. A good resource on PyQt is 'GUI Programming with Py-
thon:
Qt
Edition'
[http://www.opendocs.org/pyqt/].
See
the
official
homepage
[http://www.riverbankcomputing.co.uk/pyqt/index.php] for more details.
• PyGTK. This is the Python binding for the GTK+ toolkit which is the foundation upon which
GNOME is built. GTK+ has many quirks in usage but once you become comfortable, you can create
GUI apps fast. The Glade graphical interface designer is indispensable. The documentation is yet to
improve. GTK+ works well on Linux but its port to Windows is incomplete. You can create both
free as well as proprietary software using GTK+. See the official homepage [http://www.pygtk.org/]
for more details.
• wxPython. This is the Python bindings for the wxWidgets toolkit. wxPython has a learning curve
associated with it. However, it is very portable and runs on Linux, Windows, Mac and even embed-
ded platforms. There are many IDEs available for wxPython which include GUI designers as well
such as SPE (Stani's Python Editor) [http://spe.pycs.net/] and the wxGlade
[http://wxglade.sourceforge.net/] GUI builder. You can create free as well as proprietary software
using wxPython. See the official homepage [http://www.wxpython.org/] for more details.
• TkInter. This is one of the oldest GUI toolkits in existence. If you have used IDLE, you have seen
a TkInter program at work. The documentation for TkInter at PythonWare.org
[http://www.pythonware.com/library/tkinter/introduction/index.htm] is comprehensive. TkInter is
portable and works on both Linux/Unix as well as Windows. Importantly, TkInter is part of the
standard Python distribution.
اگر قرار باشه برنامهی کراس-پلتفرم بنویسم مطمئنا انتخابم wxPython خواهد بود و اگر قرار باشه فقط برای میزکار گنوم بنویسم pyGTK رو انتخاب میکنم.
-
اگه خواستی یه نگاه هم به kivy بنداز .
kivy.org