Re: Easy-to-use Python GUI
Thanks to everyone who responded; I'll be checking out the various toolkits people have listed! ---Joel -- http://mail.python.org/mailman/listinfo/python-list
Re: Easy-to-use Python GUI
2009/1/1 Gerhard Häring g...@ghaering.de: Dotan Cohen wrote: I have been following this thread with interest. Is there a way to build Qt apps with relative easy? I use KDE and would prefer the Qt toolkit for my GUI apps. Thanks. A few years ago, I've had bad experiences with wxPython (random things not actually working on Linux, only on Windows; getting segfaults when using not exactly the right values for API calls). So, when I had to decide for a toolkit for a new application I'm developing on my job which required: - ability to run on Windows - ability to run on MacOS - time to develop is short I recommended to go with PyQt. I remembered it was warmly recommended by Alex Martelli and others a few years ago. So far, it's been nothing but joy. We bought the book Rapid GUI Programming with Python and Qt (http://www.qtrac.eu/pyqtbook.html) which is *really* well written. It's probably the best tech book I ever had. The author formerly did Qt documentation for Trolltech, so he has deep understanding of what he's writing about. There may be not so many third-party add-ons for PyQt like for wxPython, but in my opinion, the quality of Qt, PyQt and documentation like the book make up for it. And, it's really extensive. So far I've found everything in Qt/PyQt I wanted/needed: - MDI workspaces - Dock windows - I needed something like wxPythons wxOGL for a process modeler and after looking around for two days, I found out that it's already all there in Qt 4.4: QGraphicsScene/QGraphicsView - etc. Thank you. I just googled the book and it seems to be Python 2 only, which is not surprising considering that Python 3 just came out. I will purchase a copy as soon as it is updated for Python 3. Thanks! -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-ي А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я ä-ö-ü-ß-Ä-Ö-Ü -- http://mail.python.org/mailman/listinfo/python-list
Re: Easy-to-use Python GUI
Gerhard Häring wrote: Dotan Cohen wrote: I have been following this thread with interest. Is there a way to build Qt apps with relative easy? I use KDE and would prefer the Qt toolkit for my GUI apps. Thanks. A few years ago, I've had bad experiences with wxPython (random things not actually working on Linux, only on Windows; getting segfaults when using not exactly the right values for API calls). So, when I had to decide for a toolkit for a new application I'm developing on my job which required: - ability to run on Windows - ability to run on MacOS - time to develop is short I recommended to go with PyQt. I remembered it was warmly recommended by Alex Martelli and others a few years ago. So far, it's been nothing but joy. We bought the book Rapid GUI Programming with Python and Qt (http://www.qtrac.eu/pyqtbook.html) which is *really* well written. It's probably the best tech book I ever had. The author formerly did Qt documentation for Trolltech, so he has deep understanding of what he's writing about. There may be not so many third-party add-ons for PyQt like for wxPython, but in my opinion, the quality of Qt, PyQt and documentation like the book make up for it. And, it's really extensive. So far I've found everything in Qt/PyQt I wanted/needed: - MDI workspaces - Dock windows - I needed something like wxPythons wxOGL for a process modeler and after looking around for two days, I found out that it's already all there in Qt 4.4: QGraphicsScene/QGraphicsView - etc. I think wxPython now has it all too. I replaced wxOGL with a modified version of OGLlike, see some screenshots here: http://mientki.ruhosting.nl/data_www/pylab_works/pw_animations_screenshots.html cheers, Stef -- Gerhard -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Easy-to-use Python GUI
I have been following this thread with interest. Is there a way to build Qt apps with relative easy? I use KDE and would prefer the Qt toolkit for my GUI apps. Thanks. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-ي А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я ä-ö-ü-ß-Ä-Ö-Ü -- http://mail.python.org/mailman/listinfo/python-list
Re: Easy-to-use Python GUI
On Dec 29, 5:49 pm, Joel Koltner zapwiredashgro...@yahoo.com wrote: Thanks to everyone who responded; I'll be checking out the various toolkits people have listed! ---Joel There is wxFormBuilder, which stores a GUI design in XML format. It may be lengthy, but your data reside in a data structure, and your program resides in a program structure. -- http://mail.python.org/mailman/listinfo/python-list
Re: Easy-to-use Python GUI
Dotan Cohen wrote: I have been following this thread with interest. Is there a way to build Qt apps with relative easy? I use KDE and would prefer the Qt toolkit for my GUI apps. Thanks. A few years ago, I've had bad experiences with wxPython (random things not actually working on Linux, only on Windows; getting segfaults when using not exactly the right values for API calls). So, when I had to decide for a toolkit for a new application I'm developing on my job which required: - ability to run on Windows - ability to run on MacOS - time to develop is short I recommended to go with PyQt. I remembered it was warmly recommended by Alex Martelli and others a few years ago. So far, it's been nothing but joy. We bought the book Rapid GUI Programming with Python and Qt (http://www.qtrac.eu/pyqtbook.html) which is *really* well written. It's probably the best tech book I ever had. The author formerly did Qt documentation for Trolltech, so he has deep understanding of what he's writing about. There may be not so many third-party add-ons for PyQt like for wxPython, but in my opinion, the quality of Qt, PyQt and documentation like the book make up for it. And, it's really extensive. So far I've found everything in Qt/PyQt I wanted/needed: - MDI workspaces - Dock windows - I needed something like wxPythons wxOGL for a process modeler and after looking around for two days, I found out that it's already all there in Qt 4.4: QGraphicsScene/QGraphicsView - etc. -- Gerhard -- http://mail.python.org/mailman/listinfo/python-list
Re: Easy-to-use Python GUI
Joel Koltner zapwiredashgro...@yahoo.com wrote: ... One approach that I like comes from SAX BASIC/WinWrap, which is more or less a clone of Microsoft's Visual BASIC for Applications, but they (apparently) wanted everything to still be human-readable, so they have a simple GUI (form) builder that generates code that looks like this: --- Begin Dialog UserDialog 850,497,Export Control ' %GRID:10,7,1,1 GroupBox 20,7,360,217,Drill File Generation,.GroupBox1 CheckBox 40,35,130,14,Output drill file(s),.genDrill Text 40,63,270,28,Identify via layers as any that contain this text in their names:,.Text TextBox 40,98,220,21,.viaLayerName Text 40,140,100,14,Output method:,.Text8 DropListBox 160,140,180,21,DrillStyle(),.drillStyle Text 40,175,130,28,Select drill table units:,.Text2 ListBox 200,175,120,28,unitNames(),.unitName OKButton 310,469,90,21 CancelButton 410,469,90,21 End Dialog ' GUI builder generates or modifies everything above, but can also be edited by hand ' You write the following code... Dim dlg As UserDialog dlg.genDrill = 1 ReDim DrillStyle(1) DrillStyle(0) = All Via Layers In One File DrillStyle(1) = One File Per Via Layer dlg.drillStyle = 1 func=Dialog(dlg) --- This is pretty darned easy for me understand and modify either by hand or with the GUI builder. Well, allow me to point out that the equivalent code in wxPython would not be very much longer than this. It's just spelled differently. Sure, you have a bit of a learning curve to climb, just like you do with any new development tool. Once you take the time to get familiar with it, you'd read the wxPython program just as easily as that Basic example. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list
Re: Easy-to-use Python GUI
On Thu, Dec 25, 2008 at 1:46 AM, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Wed, 24 Dec 2008 21:47:07 -0200, Joel Koltner zapwiredashgro...@yahoo.com escribió: Is there an easy-to-use, function-based cross-platform GUI toolkit for Python out there that's a little more sophisticated than EasyGui? Try Dabo http://dabodev.com/ +1 for Dabo. I tried just about everything listed by others before I found Dabo a couple of years ago. Since then creating the GUI for my apps is the easiest part of the process. Now I can focus on what my app is supposed to do, rather than how to get a certain widget to look the way I need it to look. -- # p.d. -- http://mail.python.org/mailman/listinfo/python-list
Re: Easy-to-use Python GUI
On Dec 24, 5:47 pm, Joel Koltner zapwiredashgro...@yahoo.com wrote: Is there an easy-to-use, function-based cross-platform GUI toolkit for Python out there that's a little more sophisticated than EasyGui? EasyGui looks good, but it's a little more restrictive than what I'd like to have, yet I'm (stubbornly :-) ) resistant to stepping up to a full service GUI toolkit such as pyGTK or wxPython where it's all about event loops and callbacks and you need to start planning how the GUI affects the overall program flow rather than just using a forms (or Wizard)-type approach where you put up a few dialogs, users fill in some variables, and your program just sits around waiting until OK or Cancel is clicked. One approach that I like comes from SAX BASIC/WinWrap, which is more or less a clone of Microsoft's Visual BASIC for Applications, but they (apparently) wanted everything to still be human-readable, so they have a simple GUI (form) builder that generates code that looks like this: --- Begin Dialog UserDialog 850,497,Export Control ' %GRID:10,7,1,1 GroupBox 20,7,360,217,Drill File Generation,.GroupBox1 CheckBox 40,35,130,14,Output drill file(s),.genDrill Text 40,63,270,28,Identify via layers as any that contain this text in their names:,.Text TextBox 40,98,220,21,.viaLayerName Text 40,140,100,14,Output method:,.Text8 DropListBox 160,140,180,21,DrillStyle(),.drillStyle Text 40,175,130,28,Select drill table units:,.Text2 ListBox 200,175,120,28,unitNames(),.unitName OKButton 310,469,90,21 CancelButton 410,469,90,21 End Dialog ' GUI builder generates or modifies everything above, but can also be edited by hand ' You write the following code... Dim dlg As UserDialog dlg.genDrill = 1 ReDim DrillStyle(1) DrillStyle(0) = All Via Layers In One File DrillStyle(1) = One File Per Via Layer dlg.drillStyle = 1 func=Dialog(dlg) --- This is pretty darned easy for me understand and modify either by hand or with the GUI builder. Still, it's quite powerful, since it supports all the common GUI elements (text, group boxes, checkboxes, drop-down lists, text boxes, buttons, etc.). This is about the level of sophistication I'm looking for. Anything like this for Python? Thanks, ---Joel Some people like Boa Constructor, XRC or wxGlade: http://boa-constructor.sourceforge.net/ http://wxglade.sourceforge.net/ http://wiki.wxpython.org/XRCTutorial Technically, you can switch to IronPython and then use Visual Studio to design your GUIs and IronPython to control it. I think there's something similar to Jython and Cocoa as well. Probably not what you wanted though. Mike -- http://mail.python.org/mailman/listinfo/python-list
Re: Easy-to-use Python GUI
On Dec 24, 3:47 pm, Joel Koltner zapwiredashgro...@yahoo.com wrote: Is there an easy-to-use, function-based cross-platform GUI toolkit for Python out there that's a little more sophisticated than EasyGui? EasyGui looks good, but it's a little more restrictive than what I'd like to have, yet I'm (stubbornly :-) ) resistant to stepping up to a full service GUI toolkit such as pyGTK or wxPython where it's all about event loops and callbacks and you need to start planning how the GUI affects the overall program flow rather than just using a forms (or Wizard)-type approach where you put up a few dialogs, users fill in some variables, and your program just sits around waiting until OK or Cancel is clicked. One approach that I like comes from SAX BASIC/WinWrap, which is more or less a clone of Microsoft's Visual BASIC for Applications, but they (apparently) wanted everything to still be human-readable, so they have a simple GUI (form) builder that generates code that looks like this: --- Begin Dialog UserDialog 850,497,Export Control ' %GRID:10,7,1,1 GroupBox 20,7,360,217,Drill File Generation,.GroupBox1 CheckBox 40,35,130,14,Output drill file(s),.genDrill Text 40,63,270,28,Identify via layers as any that contain this text in their names:,.Text TextBox 40,98,220,21,.viaLayerName Text 40,140,100,14,Output method:,.Text8 DropListBox 160,140,180,21,DrillStyle(),.drillStyle Text 40,175,130,28,Select drill table units:,.Text2 ListBox 200,175,120,28,unitNames(),.unitName OKButton 310,469,90,21 CancelButton 410,469,90,21 End Dialog ' GUI builder generates or modifies everything above, but can also be edited by hand ' You write the following code... Dim dlg As UserDialog dlg.genDrill = 1 ReDim DrillStyle(1) DrillStyle(0) = All Via Layers In One File DrillStyle(1) = One File Per Via Layer dlg.drillStyle = 1 func=Dialog(dlg) --- This is pretty darned easy for me understand and modify either by hand or with the GUI builder. Still, it's quite powerful, since it supports all the common GUI elements (text, group boxes, checkboxes, drop-down lists, text boxes, buttons, etc.). This is about the level of sophistication I'm looking for. Anything like this for Python? Thanks, ---Joel You may want to try PythonCard. It is a GUI toolkit that runs on wxPython, but it is much easier to use. Visit http://pythoncard.sourceforge.net/ and check out all the samples and screenshots. You may also want to listen to this podcast: http://libsyn.com/media/awaretek/Python411_070509_GUItoolkits.mp3 It discusses python GUI toolkits in general. You should also listen to: http://media.libsyn.com/media/awaretek/Python411_060730_PythonCard.mp3 which discusses PythonCard in detail. The python podcast collection can be found at: http://www.awaretek.com/python/ I just started out with PythonCard and I'm picking it up really fast. Hope this helps! -Sponge -- http://mail.python.org/mailman/listinfo/python-list
Re: Easy-to-use Python GUI
On Dec 24, 9:47 pm, Joel Koltner zapwiredashgro...@yahoo.com wrote: Dim dlg As UserDialog dlg.genDrill = 1 ReDim DrillStyle(1) DrillStyle(0) = All Via Layers In One File DrillStyle(1) = One File Per Via Layer dlg.drillStyle = 1 func=Dialog(dlg) --- This is pretty darned easy for me understand and modify either by hand or with the GUI builder. Still, it's quite powerful, since it supports all the common GUI elements (text, group boxes, checkboxes, drop-down lists, text boxes, buttons, etc.). This is about the level of sophistication I'm looking for. Anything like this for Python? I have not used it (yet), but Treethon looks like what you want: --- _import: gtk view: gtk.Window() add: - view: gtk.Button('Hello World') on clicked: print view.get_label() --- Check http://pypi.python.org/pypi/treethon/ and http://code.google.com/p/treethon/ If you can report back on treethon, I'd like to hear about it :) HTH, Daniel -- http://mail.python.org/mailman/listinfo/python-list
Re: Easy-to-use Python GUI
Is there an easy-to-use, function-based cross-platform GUI toolkit for Python out there that's a little more sophisticated than EasyGui? EasyGui looks good, but it's a little more restrictive than what I'd like to have, yet I'm (stubbornly :-) ) resistant to stepping up to a full service GUI toolkit such as pyGTK or wxPython where it's all about event loops and callbacks and you need to start planning how the GUI affects the overall program flow rather than just using a forms (or Wizard)-type approach where you put up a few dialogs, users fill in some variables, and your program just sits around waiting until OK or Cancel is clicked. One approach that I like comes from SAX BASIC/WinWrap, which is more or less a clone of Microsoft's Visual BASIC for Applications, but they (apparently) wanted everything to still be human-readable, so they have a simple GUI (form) builder that generates code that looks like this: --- Begin Dialog UserDialog 850,497,Export Control ' %GRID:10,7,1,1 GroupBox 20,7,360,217,Drill File Generation,.GroupBox1 CheckBox 40,35,130,14,Output drill file(s),.genDrill Text 40,63,270,28,Identify via layers as any that contain this text in their names:,.Text TextBox 40,98,220,21,.viaLayerName Text 40,140,100,14,Output method:,.Text8 DropListBox 160,140,180,21,DrillStyle(),.drillStyle Text 40,175,130,28,Select drill table units:,.Text2 ListBox 200,175,120,28,unitNames(),.unitName OKButton 310,469,90,21 CancelButton 410,469,90,21 End Dialog ' GUI builder generates or modifies everything above, but can also be edited by hand ' You write the following code... Dim dlg As UserDialog dlg.genDrill = 1 ReDim DrillStyle(1) DrillStyle(0) = All Via Layers In One File DrillStyle(1) = One File Per Via Layer dlg.drillStyle = 1 func=Dialog(dlg) --- This is pretty darned easy for me understand and modify either by hand or with the GUI builder. Still, it's quite powerful, since it supports all the common GUI elements (text, group boxes, checkboxes, drop-down lists, text boxes, buttons, etc.). This is about the level of sophistication I'm looking for. Anything like this for Python? How about the Tcl/Tk GUI that comes bundled with python? http://docs.python.org/library/tk.html Cheers, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown -- http://mail.python.org/mailman/listinfo/python-list
Re: Easy-to-use Python GUI
On 25 дек, 06:47, Joel Koltner zapwiredashgro...@yahoo.com wrote: Is there an easy-to-use, function-based cross-platform GUI toolkit for Python out there that's a little more sophisticated than EasyGui? EasyGui looks good, but it's a little more restrictive than what I'd like to have, yet I'm (stubbornly :-) ) resistant to stepping up to a full service GUI toolkit such as pyGTK or wxPython where it's all about event loops and callbacks and you need to start planning how the GUI affects the overall program flow rather than just using a forms (or Wizard)-type approach where you put up a few dialogs, users fill in some variables, and your program just sits around waiting until OK or Cancel is clicked. One approach that I like comes from SAX BASIC/WinWrap, which is more or less a clone of Microsoft's Visual BASIC for Applications, but they (apparently) wanted everything to still be human-readable, so they have a simple GUI (form) builder that generates code that looks like this: --- Begin Dialog UserDialog 850,497,Export Control ' %GRID:10,7,1,1 GroupBox 20,7,360,217,Drill File Generation,.GroupBox1 CheckBox 40,35,130,14,Output drill file(s),.genDrill Text 40,63,270,28,Identify via layers as any that contain this text in their names:,.Text TextBox 40,98,220,21,.viaLayerName Text 40,140,100,14,Output method:,.Text8 DropListBox 160,140,180,21,DrillStyle(),.drillStyle Text 40,175,130,28,Select drill table units:,.Text2 ListBox 200,175,120,28,unitNames(),.unitName OKButton 310,469,90,21 CancelButton 410,469,90,21 End Dialog ' GUI builder generates or modifies everything above, but can also be edited by hand ' You write the following code... Dim dlg As UserDialog dlg.genDrill = 1 ReDim DrillStyle(1) DrillStyle(0) = All Via Layers In One File DrillStyle(1) = One File Per Via Layer dlg.drillStyle = 1 func=Dialog(dlg) --- This is pretty darned easy for me understand and modify either by hand or with the GUI builder. Still, it's quite powerful, since it supports all the common GUI elements (text, group boxes, checkboxes, drop-down lists, text boxes, buttons, etc.). This is about the level of sophistication I'm looking for. Anything like this for Python? Thanks, ---Joel Try PyScripter :) http://mmm-experts.com/Products.aspx?ProductId=4 -- http://mail.python.org/mailman/listinfo/python-list
Re: Easy-to-use Python GUI
En Wed, 24 Dec 2008 21:47:07 -0200, Joel Koltner zapwiredashgro...@yahoo.com escribió: Is there an easy-to-use, function-based cross-platform GUI toolkit for Python out there that's a little more sophisticated than EasyGui? Try Dabo http://dabodev.com/ -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list