Re: GUIs - a modest proposal

2012-04-08 Thread lkcl
On Mar 2, 6:42 am, lkcl luke.leigh...@gmail.com wrote:  ah.  right.  you're either referring to pyjampiler (in the pyjs world) or to [...]  the former actually got taken to an extreme by a group who embedded  the pyjs 0.5 compiler into their application environment, i keep forgetting  

Re: GUIs - a modest proposal

2012-03-01 Thread lkcl
folks hi, apologies for picking this up so late - it's only when i find these things through random searches that i encounter the occasional post. At some point wa in the distant past, g4b wrote: On the subject of the gui discussion mentioned here last year, which you get lead to if you

Re: GUIs - A Modest Proposal

2011-10-08 Thread g4b
On the subject of the gui discussion mentioned here last year, which you get lead to if you read around in the pyjamas docs, I have to admit, since I know both development types (gwt, wx, qt) and (django, jquery), I have to state the fact, that pyjamas should also consider bonding with native

Re: GUIs - A Modest Proposal

2010-06-19 Thread est
Having said all that, I would like to eliminate some of the depedencie. At some point I'll probably re-do the Windows implementation using ctypes, because pywin32/mfc is hindering more than helping in some areas. I'm also thinking about ways to interface directly with Cocoa without going

Re: GUIs - A Modest Proposal

2010-06-19 Thread Matt
On 06/17/2010 08:50 AM, Grant Edwards wrote: On 2010-06-16, Matt m...@themattfella.xxxyyz.com wrote: On 06/05/2010 09:22 PM, ant wrote: PyQt is tied to one platform. Several posters have asked for support for or clarification of this claim of yours. Let me guess... The one platform

Re: GUIs - A Modest Proposal

2010-06-18 Thread Jeff Hobbs
On Jun 10, 1:13 am, Martin v. Loewis mar...@v.loewis.de wrote: That said, PerlTk didn't use Tcl did it? If you are referring tohttp://search.cpan.org/~srezic/Tk-804.028/- this also has a full Tcl interpreter, in pTk/mTk, and uses Tcl_Interp and Tcl_Obj throughout. From the Perl/Tk FAQ (*):

Re: GUIs - A Modest Proposal

2010-06-18 Thread Jeff Hobbs
On Jun 6, 2:11 pm, rantingrick rantingr...@gmail.com wrote: On Jun 6, 2:06 pm, Mark Lawrence breamore...@yahoo.co.uk wrote: On 06/06/2010 16:31, rantingrick wrote: On Jun 5, 9:22 pm, antshi...@uklinux.net  wrote: I ask the group; should we try to create a new GUI for Python, with the

Re: GUIs - A Modest Proposal

2010-06-18 Thread Ethan Furman
Jeff Hobbs wrote: On Jun 6, 2:11 pm, rantingrick rantingr...@gmail.com wrote: On Jun 6, 2:06 pm, Mark Lawrence breamore...@yahoo.co.uk wrote: On 06/06/2010 16:31, rantingrick wrote: On Jun 5, 9:22 pm, antshi...@uklinux.net wrote: I ask the group; should we try to create a new GUI for

Re: GUIs - A Modest Proposal

2010-06-18 Thread Jeff Hobbs
On Jun 18, 2:59 pm, Ethan Furman et...@stoneleaf.us wrote: Jeff Hobbs wrote: On Jun 6, 2:11 pm, rantingrick rantingr...@gmail.com wrote: On Jun 6, 2:06 pm, Mark Lawrence breamore...@yahoo.co.uk wrote: On 06/06/2010 16:31, rantingrick wrote: On Jun 5, 9:22 pm, antshi...@uklinux.net  wrote:

Re: GUIs - A Modest Proposal

2010-06-18 Thread Kevin Walzer
On 6/18/10 6:16 PM, Jeff Hobbs wrote: Is there a good web-site / tutorial / book / etc that you would recommend for getting a good handle on Tk 8.5? Most of the Tk 8.5 references will be Tcl-based, but one that is cross- language is Mark Roseman's www.tkdocs.com. For books, there is John

Re: GUIs - A Modest Proposal

2010-06-17 Thread Grant Edwards
On 2010-06-16, Matt m...@themattfella.xxxyyz.com wrote: On 06/05/2010 09:22 PM, ant wrote: PyQt is tied to one platform. Several posters have asked for support for or clarification of this claim of yours. Let me guess... The one platform it's tied to is Qt? -- Grant Edwards

Re: GUIs - A Modest Proposal

2010-06-16 Thread lkcl
On Jun 15, 2:47 pm, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Tue, 15 Jun 2010 05:57:13 -0700, lkcl wrote:  to be honest, if you don't put any effort in to use the appropriate lovely-prettiness panels you can end up with something truly 90s- esque.  but with a little

Re: GUIs - A Modest Proposal

2010-06-16 Thread lkcl
On Jun 15, 1:07 pm, superpollo ute...@esempio.net wrote: mind you, i am no python expert, but i really look forward to seeing pyjamas in the stdlib :-) anytime soon? *choke* :) ... weelll... let me answer that as if it's serious. you'd have to: a) define http://python.org as including a

Re: GUIs - A Modest Proposal

2010-06-16 Thread Cameron Laird
On Jun 6, 5:49 pm, Kevin Walzer k...@codebykevin.com wrote: . [much wisdom, particularly in regard to Tkinter] . . The very diversity of GUI toolkits came into effect because Python is very easy to extend and integrate with other C/C++ libraries. Writing a GUI toolkit from

Re: GUIs - A Modest Proposal

2010-06-16 Thread Matt
On 06/05/2010 09:22 PM, ant wrote: PyQt is tied to one platform. Several posters have asked for support for or clarification of this claim of yours. On its face it seems to be nonsense. So just what are you talking about? -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-15 Thread Stephen Hansen
On 6/14/10 10:35 PM, rantingrick wrote: On Jun 14, 11:08 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: snip Does not perform to spec. Quote, Inside of A, there are four items in a vertical line. The bottom which takes up half of the total vertical space, and the top three share the

Re: GUIs - A Modest Proposal

2010-06-15 Thread Stephen Hansen
On 6/14/10 9:08 PM, Stephen Hansen wrote: On 6/14/10 8:31 PM, rantingrick wrote: On Jun 14, 9:41 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: I wasn't aware of [row|column]configure, no: however, I am dubious of how it directly applies. Maybe you should become more aware of a subject

Re: GUIs - A Modest Proposal

2010-06-15 Thread rantingrick
On Jun 15, 1:41 am, Stephen Hansen me+list/pyt...@ixokai.io wrote: On 6/14/10 9:08 PM, Stephen Hansen wrote: You're an *beep*. For the record, this was inappropriate. A moment's frustration after a long day does not excuse belligerence, even if unnecessarily provoked. I apologize. No

Re: GUIs - A Modest Proposal

2010-06-15 Thread Albert van der Horst
In article 80a7b823-6acb-4ac9-a273-525054265...@k25g2000prh.googlegroups.com, ant shi...@uklinux.net wrote: SNIP My concern is simple: I think that Python is doomed to remain a minor language unless we crack this problem. Capitalist fallacy: If I'm not a market leader, I'm a failure and my

Re: GUIs - A Modest Proposal

2010-06-15 Thread Mark Lawrence
On 15/06/2010 08:39, rantingrick wrote: On Jun 15, 1:41 am, Stephen Hansenme+list/pyt...@ixokai.io wrote: On 6/14/10 9:08 PM, Stephen Hansen wrote: You're an *beep*. For the record, this was inappropriate. A moment's frustration after a long day does not excuse belligerence, even if

Re: GUIs - A Modest Proposal

2010-06-15 Thread Gregory Ewing
Stephen Hansen wrote: unless I've been long mistaken in pack not having a proportional option. A combination of fill/expand and anchor do most of everything else, though, that wx's flags and alignment options. It's a while since I used tkinter, but if I recall correctly, the grid manager does

Re: GUIs - A Modest Proposal

2010-06-15 Thread lkcl
On Jun 14, 9:00 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: On 6/14/10 1:00 PM, lkcl wrote:  what we typically recommend is that _even_ though you're going to run the application desktop - as pure python - you still use JSONRPC [or XmlHTTPRequest if JSONRPC is overkill].  so, _even_

Re: GUIs - A Modest Proposal

2010-06-15 Thread superpollo
lkcl ha scritto: ... That sounds too good to be true. yup, it does. how can one person, a free software developer, have come up with something like The Holy Grail of software development, right? when all the money in the world, from ibm, adobe, microsoft, google, nokia and so on _hasn't_

Re: GUIs - A Modest Proposal

2010-06-15 Thread Steven D'Aprano
On Tue, 15 Jun 2010 05:57:13 -0700, lkcl wrote: to be honest, if you don't put any effort in to use the appropriate lovely-prettiness panels you can end up with something truly 90s- esque. but with a little effort you can do round-edged lovely colour tabs:

Re: WebBrowserProgramming [was: GUIs - A Modest Proposal]

2010-06-14 Thread lkcl
On Jun 13, 4:52 pm, a...@pythoncraft.com (Aahz) wrote: In article cf08e777-b98b-4b7c-96df-e7b127c02...@y4g2000yqy.googlegroups.com, lkcl  luke.leigh...@gmail.com wrote: i'm recording all of these, and any other web browser manipulation technology that i've ever encountered, here:

pyqt4 vs pygtk2 vs pyjamas (was: GUIs - A Modest Proposal)

2010-06-14 Thread lkcl
On Jun 13, 3:43 pm, Michael Torrie torr...@gmail.com wrote: On 06/13/2010 05:29 AM, lkcl wrote:  really?  drat.  i could have done with knowing that at the time. hmmm, perhaps i will return to the pyqt4 port after all. We're now wandering well off-topic here, but then again this thread was

Re: GUIs - A Modest Proposal

2010-06-14 Thread lkcl
On Jun 13, 2:34 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: On 6/13/10 4:29 AM, lkcl wrote:  it's in fact how the entire pyjamas UI widget set is created, by doing nothing more than direct manipulation of bits of DOM and direct manipulation of the style properties.  really really

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 7:15 AM, lkcl wrote: On Jun 13, 2:34 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: On 6/13/10 4:29 AM, lkcl wrote: it's in fact how the entire pyjamas UI widget set is created, by doing nothing more than direct manipulation of bits of DOM and direct manipulation of the style

Re: GUIs - A Modest Proposal

2010-06-14 Thread rantingrick
On Jun 14, 11:17 am, Stephen Hansen me+list/pyt...@ixokai.io wrote: And the recursive flow of the DOM is powerful This style of speaking reminds me of our former hillbilly president (no not Clinton, he was the eloquent hillbilly!) No i am referring to good old George Dubya. He left us with so

Re: GUIs - A Modest Proposal

2010-06-14 Thread Ricardo Aráoz
On 14/06/2010 02:57 p.m., rantingrick wrote: On Jun 14, 11:17 am, Stephen Hansenme+list/pyt...@ixokai.io wrote: And the recursive flow of the DOM is powerful This style of speaking reminds me of our former hillbilly president (no not Clinton, he was the eloquent hillbilly!) No i am

Re: GUIs - A Modest Proposal

2010-06-14 Thread lkcl
On Jun 14, 4:17 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: Did you just call DOM manipulation simple with a straight face? I don't think I've ever seen that before.  *lol* - wait for it: see below.  summary: once you start using high- level widgets: yes.  without such, yeah

Re: GUIs - A Modest Proposal

2010-06-14 Thread lkcl
On Jun 14, 5:57 pm, rantingrick rantingr...@gmail.com wrote: On Jun 14, 11:17 am, Stephen Hansen me+list/pyt...@ixokai.io wrote: And the recursive flow of the DOM is powerful This style of speaking reminds me of our former hillbilly president (no not Clinton, he was the eloquent hillbilly!)

Re: GUIs - A Modest Proposal

2010-06-14 Thread lkcl
On Jun 14, 5:57 pm, rantingrick rantingr...@gmail.com wrote: I'll have to very much agree with this assessment Stephan. There exists not elegant API for these web UI's. The people over at SketchUp (my second love after python) have this problem on a daily bases with WebDialogs. Even the

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 11:47 AM, lkcl wrote: On Jun 14, 4:17 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: yes. that's effectively what pyjs applications are about: as much HTML/CSS as you can stand, then _absolute_ pure javascript from there- on in... only using a compiler (python-to-javascript)

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 12:16 PM, lkcl wrote: from thereon in, you DO NOT do *any* HTML page GETs: it's a one- time static HTML/JS load, and THAT's IT. the only further interaction that we recommend is first and foremost JSONRPC (and so, out of the 30 or so pyjamas wiki pages, about 10 of them involve

Re: GUIs - A Modest Proposal

2010-06-14 Thread lkcl
On Jun 14, 7:30 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: On 6/14/10 11:47 AM, lkcl wrote: On Jun 14, 4:17 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote:  yes.  that's effectively what pyjs applications are about: as much HTML/CSS as you can stand, then _absolute_ pure

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 1:00 PM, lkcl wrote: On Jun 14, 7:30 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: On 6/14/10 11:47 AM, lkcl wrote: wx has two separate containment hierarchies. The first is a hierarchical, parent-child relationship. This is what a lot of people think is its layout: but its

Re: GUIs - A Modest Proposal

2010-06-14 Thread lkcl
On Jun 14, 7:30 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: On 6/14/10 11:47 AM, lkcl wrote: On Jun 14, 4:17 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote:  yes.  that's effectively what pyjs applications are about: as much HTML/CSS as you can stand, then _absolute_ pure

Re: GUIs - A Modest Proposal

2010-06-14 Thread rantingrick
On Jun 14, 2:30 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: Stephan speaking of Wx geometry managers... Ahem. /Rant. I'm not saying its the best layout system in the world, but like your DOM/HTML example -- its resolution independant (and cross-platform), so you can start resizing

Re: GUIs - A Modest Proposal

2010-06-14 Thread rantingrick
On Jun 14, 2:16 pm, lkcl luke.leigh...@gmail.com wrote: On Jun 14, 5:57 pm, rantingrick rantingr...@gmail.com wrote: I'll have to very much agree with this assessment Stephan. There exists not elegant API for these web UI's. The people over at SketchUp (my second love after python) have

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 3:44 PM, rantingrick wrote: On Jun 14, 2:30 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: Stephan speaking of Wx geometry managers... Ahem. /Rant. I'm not saying its the best layout system in the world, but like your DOM/HTML example -- its resolution independant (and

Re: GUIs - A Modest Proposal

2010-06-14 Thread AD.
On Jun 14, 2:34 am, Stephen Hansen me+list/pyt...@ixokai.io wrote: HTML+CSS have some very strong advantages. Simplicity is not one of them. Precision web design these days is a dark art. (Go center an image vertically and horizontally in an arbitrary sized field!) I agree, and I know that's a

Re: GUIs - A Modest Proposal

2010-06-14 Thread Ed Keith
--- On Mon, 6/14/10, AD. anton.l...@gmail.com wrote: From: AD. anton.l...@gmail.com Subject: Re: GUIs - A Modest Proposal To: python-list@python.org Date: Monday, June 14, 2010, 7:51 PM On Jun 14, 2:34 am, Stephen Hansen me+list/pyt...@ixokai.io wrote: HTML+CSS have some very strong

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 4:51 PM, AD. wrote: On Jun 14, 2:34 am, Stephen Hansen me+list/pyt...@ixokai.io wrote: HTML+CSS have some very strong advantages. Simplicity is not one of them. Precision web design these days is a dark art. (Go center an image vertically and horizontally in an arbitrary sized

Re: GUIs - A Modest Proposal

2010-06-14 Thread AD.
On Jun 15, 11:59 am, Ed Keith e_...@yahoo.com wrote: But that is in a fixed size field, That's why I used the same image definition in two different sized divs to show that the images position wasn't determined by the divs size. can you make the height change based on the height of the browser

Re: GUIs - A Modest Proposal

2010-06-14 Thread Ed Keith
Nice! I've been looking for that trick for some time. Thank you, -EdK Ed Keith e_...@yahoo.com Blog: edkeith.blogspot.com --- On Mon, 6/14/10, AD. anton.l...@gmail.com wrote: From: AD. anton.l...@gmail.com Subject: Re: GUIs - A Modest Proposal To: python-list@python.org Date: Monday

Re: GUIs - A Modest Proposal

2010-06-14 Thread AD.
On Jun 15, 12:06 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: Arbitrarily sized was the key point ;-) In that, you set the sizes of the div's explicitly. As I said to Ed, I think you missed why I included the exact same image in two divs of different sizes. That was to show it was still

Re: GUIs - A Modest Proposal

2010-06-14 Thread AD.
On Jun 15, 1:03 pm, Ed Keith e_...@yahoo.com wrote: Nice! I've been looking for that trick for some time. Thank you, A lot of people (including pro web designers even) aren't really aware of what CSS can actually do. Part of the problem is that everyone only learnt the semi working subset that

Re: GUIs - A Modest Proposal

2010-06-14 Thread python
Anton, Very nice. As an aside: I don't think you need to explicitly set your image size, eg. I found your examples worked well with the following CSS properties removed from the img specification: width:100px; height: 100px; Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 6:02 PM, AD. wrote: On Jun 15, 12:06 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: Arbitrarily sized was the key point ;-) In that, you set the sizes of the div's explicitly. As I said to Ed, I think you missed why I included the exact same image in two divs of different

Re: GUIs - A Modest Proposal

2010-06-14 Thread rantingrick
On Jun 14, 6:27 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: I am familiar with grid, pack and place. Apparently not, read on... Are you arguing from an API point of view, or a functionality point of view? snip I going to argue that Tkinter offers the most elegant interface for

Re: GUIs - A Modest Proposal

2010-06-14 Thread rantingrick
On Jun 14, 6:27 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: From a functionality perspective, pack and grid are both distinctly less capable then wx sizers. Are you just flapping your gums or can you prove it Stephen? I will accept any Pepsi Challenge you can muster in Wx code and echo

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 7:05 PM, rantingrick wrote: The Place geometry manager is the simplest of the three general geometry managers provided in Tkinter. It allows you explicitly set the position and size of a window, either in absolute terms, or relative to another window. I've no interest in talking

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 7:22 PM, rantingrick wrote: On Jun 14, 6:27 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: [1] But please, make sure to post code that will run as-is. The last block of wx code you posted is missing an application instance and will not run without modification. There are noobs

Re: GUIs - A Modest Proposal

2010-06-14 Thread AD.
On Jun 15, 1:21 pm, pyt...@bdurham.com wrote: Anton, Very nice. As an aside: I don't think you need to explicitly set your image size, Yeah, I only did that because I was assuming the image path would actually be broken (and it was for me too) - it was just to 'simulate' a 100x100 image :)

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 7:22 PM, rantingrick wrote: On Jun 14, 6:27 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: From a functionality perspective, pack and grid are both distinctly less capable then wx sizers. Are you just flapping your gums or can you prove it Stephen? I will accept any Pepsi

Re: GUIs - A Modest Proposal

2010-06-14 Thread AD.
On Jun 15, 1:58 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: Very nice. And interesting. position: absolute there is a mystery to me and seems to be key, I'm not sure entirely what it is doing to the layout manager in that scenario, but it seems to do the trick. The Cliff Notes:

Re: GUIs - A Modest Proposal

2010-06-14 Thread rantingrick
On Jun 14, 9:41 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: I wasn't aware of [row|column]configure, no: however, I am dubious of how it directly applies. Maybe you should become more aware of a subject before you start running your mouth about it, eh? Consider this relatively simple

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 8:04 PM, AD. wrote: Much, much, much Googling led me to try many things to get it just right, and all bemoaned the lack of a solid way to vertically center: all the while using essentially similar methods to horizontally center. I'd recommend the book Pro CSS and HTML Design

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 8:31 PM, rantingrick wrote: On Jun 14, 9:41 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: I wasn't aware of [row|column]configure, no: however, I am dubious of how it directly applies. Maybe you should become more aware of a subject before you start running your mouth

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 9:08 PM, Stephen Hansen wrote: The code is at: http://ixokai.io/get/layout-wx.py_ If you've already downloaded this, you have to do so again; I uploaded the wrong one on accident. -- Stephen Hansen ... Also: Ixokai ... Mail: me+list/python (AT) ixokai (DOT) io ... Blog:

Re: GUIs - A Modest Proposal

2010-06-14 Thread rantingrick
On Jun 14, 11:08 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: Maybe you should become more aware of a subject before you start running your mouth about it, eh? You know what? SNIP EXPLETIVES You know what Stephen, just calm down a little. I just pick on you because you're one of the

Re: GUIs - A Modest Proposal

2010-06-14 Thread Stephen Hansen
On 6/14/10 9:26 PM, rantingrick wrote: On Jun 14, 11:08 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: Maybe you should become more aware of a subject before you start running your mouth about it, eh? You know what? SNIP EXPLETIVES You know what Stephen, just calm down a little. I

Re: GUIs - A Modest Proposal

2010-06-14 Thread rantingrick
On Jun 14, 11:08 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: snip Does not perform to spec. Quote, Inside of A, there are four items in a vertical line. The bottom which takes up half of the total vertical space, and the top three share the rest. No problem, check this out... import

Re: safer ctype? (was GUIs - A modest Proposal)

2010-06-13 Thread Stephen Hansen
On 6/12/10 8:26 PM, Gregory Ewing wrote: On Jun 12, 6:05 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: A programming goof, oversight or unexpected event causes an exception. It doesn't cause a buffer overflow. The important thing here isn't so much the exception as the *traceback*.

Re: safer ctype? (was GUIs - A modest Proposal)

2010-06-13 Thread Stephen Hansen
On 6/12/10 8:42 PM, Gregory Ewing wrote: Stephen Hansen wrote: Its one thing for Python to make available foot-shooting tools(this is good! I love ctypes, with care) for the developer, its another thing entirely for it to shoot at the ground in the normal course of its operation and hope it

Re: GUIs - A Modest Proposal

2010-06-13 Thread Stephen Hansen
On 6/12/10 8:34 PM, Gregory Ewing wrote: lkcl wrote: * in neither gtk nor qt does there exist an auto-layout widget that's equivalent to putting some span / DOM objects into a div /, to flow widgets that wrap around. You essentially seem to be complaining here that pqyqt and pygtk are

Re: GUIs - A Modest Proposal

2010-06-13 Thread Stephen Hansen
On 6/12/10 8:22 PM, Gregory Ewing wrote: Terry Reedy wrote: Would it be possible to write a program that converts a module that uses ctypes to interface to a dll to a corresponding C extension program that would compile to a drop in replacement extension module? Probably, but I don't see

Re: GUIs - A Modest Proposal

2010-06-13 Thread Jeremy Sanders
lkcl wrote: * in neither gtk nor qt does there exist an auto-layout widget that's equivalent to putting some span / DOM objects into a div /, to flow widgets that wrap around. yes, you can put words into a Label and get them to flow, but not _widgets_. I'm pretty sure in PyQt4 that you can

Re: GUIs - A Modest Proposal

2010-06-13 Thread lkcl
On Jun 13, 3:34 am, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: lkcl wrote:  * in neither gtk nor qt does there exist an auto-layout widget that's equivalent to putting some span / DOM objects into a div /, to flow widgets that wrap around. You essentially seem to be complaining here

Re: GUIs - A Modest Proposal

2010-06-13 Thread lkcl
On Jun 13, 9:01 am, Jeremy Sanders jeremy +complangpyt...@jeremysanders.net wrote: lkcl wrote:  * in neither gtk nor qt does there exist an auto-layout widget that's equivalent to putting some span / DOM objects into a div /, to flow widgets that wrap around.  yes, you can put words into a

Re: GUIs - A Modest Proposal

2010-06-13 Thread Stephen Hansen
On 6/13/10 4:29 AM, lkcl wrote: it's in fact how the entire pyjamas UI widget set is created, by doing nothing more than direct manipulation of bits of DOM and direct manipulation of the style properties. really really simple. Did you just call DOM manipulation simple with a straight face? I

Re: GUIs - A Modest Proposal

2010-06-13 Thread Michael Torrie
On 06/13/2010 05:29 AM, lkcl wrote: really? drat. i could have done with knowing that at the time. hmmm, perhaps i will return to the pyqt4 port after all. We're now wandering well off-topic here, but then again this thread was never really on any particular topic. I have to say I'm really

Re: GUIs - A Modest Proposal

2010-06-13 Thread Arndt Roger Schneider
lkcl schrieb: [snip] it's the exact same thing for SVG image file-format. i'm _definitely_ not convinced that SVG the image fileformat is The One True Way to design images - but i'm equally definitely convinced of the power of SVG manipulation libraries which allow for the creation SVG images

Re: safer ctype? (was GUIs - A modest Proposal)

2010-06-13 Thread Terry Reedy
On 6/12/2010 11:42 PM, Gregory Ewing wrote: Seriously, though, if you can't trust someone to write safe ctypes-using code, can you trust them to write safe C code any better? No, and I think you are missing the concern about ctypes. There are two issues of ctypes versus safety/security:

Re: WebBrowserProgramming [was: GUIs - A Modest Proposal]

2010-06-13 Thread Aahz
In article cf08e777-b98b-4b7c-96df-e7b127c02...@y4g2000yqy.googlegroups.com, lkcl luke.leigh...@gmail.com wrote: i'm recording all of these, and any other web browser manipulation technology that i've ever encountered, here: http://wiki.python.org/moin/WebBrowserProgramming Neat! Why aren't

Re: GUIs - A Modest Proposal

2010-06-13 Thread lkcl
On Jun 13, 3:52 pm, Arndt Roger Schneider arndt.ro...@addcom.de wrote: lkcl schrieb: [snip] it's the exact same thing for SVG image file-format.  i'm _definitely_ not convinced that SVG the image fileformat is The One True Way to design images - but i'm equally definitely convinced of

Re: GUIs - A Modest Proposal

2010-06-13 Thread Terry Reedy
On 6/13/2010 7:20 AM, lkcl wrote: I'm far from convinced that HTML and CSS are the One True Way to design GUIs these days, if you have HTML the fileformat and CSS the fileformat in mind when saying that, i can tell you right now that they're not. fortunately, with the W3C DOM functions

Re: GUIs - A Modest Proposal

2010-06-13 Thread Mark Lawrence
On 12/06/2010 14:44, lkcl wrote: On Jun 6, 10:49 pm, Kevin Walzerk...@codebykevin.com wrote: - Pythonic - The default GUI (so it replaces Tkinter) - It has the support of the majority of the Python community - Simple and obvious to use for simple things - Comprehensive, for complicated things

Re: GUIs - A Modest Proposal

2010-06-12 Thread Mark Lawrence
On 12/06/2010 03:34, Steven D'Aprano wrote: On Sat, 12 Jun 2010 14:13:44 +1200, Gregory Ewing wrote: Steven D'Aprano wrote: This reminds me of time-travellers suffering from time lag in the wonderful novel To Say Nothing Of The Dog by Connie Willis. One of the many excellent reasons why

Re: GUIs - A Modest Proposal

2010-06-12 Thread Martin v. Loewis
Yeah. I get the policy in general, a proliferation of ctypes stuff could be very bad -- but if code is very careful with type-checking and stuff, it should be possible to get an exception, I'd hope. Only if you can live with the respective module not being available all the time. The issue is

safer ctype? (was GUIs - A modest Proposal)

2010-06-12 Thread Martin P. Hellwig
On 06/12/10 08:21, Martin v. Loewis wrote: cut The issue is not that you may mistakes in the ctypes code, thus allowing users to crash Python. The issue is that if users remove ctypes (which they may want to do because it's not trustworthy), then your module will stop working (unless you have a

Re: safer ctype? (was GUIs - A modest Proposal)

2010-06-12 Thread Martin v. Loewis
Got me thinking, is it perhaps doable to have a 'safe' ctype that is guaranteed to be in the stdlib? Perhaps crippling it in a sense that it only allows a known set of functions to be called? In some sense, a C module wrapping a selected number of functions (like the win32 extensions) is

Re: safer ctype? (was GUIs - A modest Proposal)

2010-06-12 Thread Bryan
Martin P. Hellwig wrote: Martin v. Loewis wrote: cut The issue is not that you may mistakes in the ctypes code, thus allowing users to crash Python. The issue is that if users remove ctypes (which they may want to do because it's not trustworthy), then your module will stop working

Re: safer ctype? (was GUIs - A modest Proposal)

2010-06-12 Thread Martin v. Loewis
Perhaps instead of restricting what functions ctypes can use, we could restrict what modules can use ctypes. For example, maybe only modules in certain directories should be allowed to import ctypes. And that's indeed the case. The test suite may use ctypes. Regards, Martin --

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
[ye gods, i think this is the largest thread i've ever seen, but i still feel compelled to wind back to the beginning and spew forth words.] On Jun 6, 2:22 am, ant shi...@uklinux.net wrote: I get the strong feeling that nobody is really happy with the state of Python GUIs. yep. that's why i

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
On Jun 6, 10:49 pm, Kevin Walzer k...@codebykevin.com wrote: - Pythonic - The default GUI (so it replaces Tkinter) - It has the support of the majority of the Python community - Simple and obvious to use for simple things - Comprehensive, for complicated things - Cross-platform -

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
On Jun 6, 10:55 pm, ant shi...@uklinux.net wrote: On Jun 6, 2:22 pm, ant shi...@uklinux.net wrote: I get the strong feeling that nobody is really happy with the state of Python GUIs. snip... What an interesting set of responses I got! And - even more interesting - how few of them

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
On Jun 7, 9:25 pm, Arndt Roger Schneider arndt.ro...@addcom.de wrote: Terry Reedy schrieb: Forget postscript! Generate SVG from  a tk canvas or --better-- from tkpath. Jeszra (from me) generates SVG. There is also a SVG export ... orr, you use a modern web browser engine such as XulRunner

Re: GUIs - A Modest Proposal

2010-06-12 Thread Kevin Walzer
On 6/12/10 9:44 AM, lkcl wrote: that's not quite true - you can create a simple core which is easily extensible with third party contributions to create more comprehensive widgets. That's exactly the design philosophy of Tk: a small core widget set (recently expanded somewhat with the ttk

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
On Jun 9, 5:12 am, rantingrick rantingr...@gmail.com wrote: But you know i think it boils down to fear really. He is comfortable in his life and wishes to keep it as cookie cutter as he can. Any outside influence must be quashed before these meddling forces can take hold of him. He is so

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
On Jun 9, 8:45 am, Lie Ryan lie.1...@gmail.com wrote: On 06/09/10 08:20, Martin P. Hellwig wrote: I do think it is technically possible to have your own window manager in python on x11 but I have no idea if you have equal possibilities on mac Doesn't Mac uses an X server as well? not by

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
On Jun 9, 11:16 am, ant shi...@uklinux.net wrote: And who are the beginning programmers going to turn into? If we do our stuff right, Python programmers. If not, Java or PHP or Visual Basic programmers. Or website designers. Or worse (is there a worse?). yes - Java programmers who use COM

Re: GUIs - A Modest Proposal

2010-06-12 Thread Stephen Hansen
On 6/12/10 12:21 AM, Martin v. Loewis wrote: Otherwise it makes certain windows-workarounds very problematic. You basically /have/ to write a C extension :| That's not problematic at all, for the standard library. Just write that C extension. Come now, of course it is. It may not be

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
On Jun 9, 5:16 pm, Ethan Furman et...@stoneleaf.us wrote: Gregory Ewing wrote: Kevin Walzer wrote: PyGUI ... certainly is *not* a lightweight GUI toolkit that could easily be incorporated into the Python core library--it instead has rather complex dependencies on both other GUI toolkits

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
On Jun 9, 5:38 pm, rantingrick rantingr...@gmail.com wrote: Yes we need a leader. Someone who is not afraid of the naysayers. Someone with Guido's vision. When the leader emerges, the people will rally. ... Mahh? Whey'rus ma guuhhn? haww haww :) --

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
That's the reason why it won't happen. Everybody asking for change is not willing to lead the effort. Everybody who would be able and might be willing to lead the change fails to see the need for change. *lol*. i don't know why, but i think that's so hilarious i might make it my .sig. it

Python ctypes / pywin32 [was: GUIs - A Modest Proposal]

2010-06-12 Thread lkcl
On Jun 10, 6:26 pm, Martin v. Loewis mar...@v.loewis.de wrote: or PyGui would need to be implemented in terms of ctypes (which then would prevent its inclusion, because there is a policy that ctypes must not be used in the standard library). Is there? I wasn't aware of that. What's the

WebBrowserProgramming [was: GUIs - A Modest Proposal]

2010-06-12 Thread lkcl
On Jun 10, 6:56 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: For example: if you want to embed a CSS-capable web-browser into your app? PyQT is actually your best option-- albeit a commercial one if you're not open source.. wx/Python haven't yet finished WebKit integration(*). there

Re: safer ctype? (was GUIs - A modest Proposal)

2010-06-12 Thread lkcl
On Jun 12, 8:11 am, Martin v. Loewis mar...@v.loewis.de wrote: Got me thinking, is it perhaps doable to have a 'safe' ctype that is guaranteed to be in the stdlib? Perhaps crippling it in a sense that it only allows a known set of functions to be called? In some sense, a C module wrapping

  1   2   3   4   >