Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75223

Re: .Net Like Gui Builder for Python?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'tree': 0.05; 'subject:Python': 0.06; 'dev': 0.07; 'plenty': 0.07; 'buttons': 0.09; 'code"': 0.09; 'feature.': 0.09; 'mess': 0.09; 'option,': 0.09; 'things,': 0.09; 'though...': 0.09; 'yeah,': 0.09; 'cc:addr:python-list': 0.11; 'gui': 0.12; '(either': 0.16; 'blocking': 0.16; 'blocks': 0.16; 'builders': 0.16; 'containers': 0.16; 'deprecated.': 0.16; 'drag': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'implies': 0.16; 'layout,': 0.16; 'nearest': 0.16; 'next.': 0.16; 'right-click': 0.16; 'top- level': 0.16; 'uses,': 0.16; 'variations': 0.16; 'attach': 0.16; 'sat,': 0.16; 'size,': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'app': 0.19; 'basically': 0.19; 'producing': 0.19; 'projects,': 0.19; 'things.': 0.19; 'widget': 0.19; 'separate': 0.22; 'cc:addr:python.org': 0.22; 'affects': 0.24; 'builder': 0.24; 'button,': 0.24; 'fine': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'second': 0.26; 'least': 0.26; '(for': 0.26; 'header:In-Reply- To:1': 0.27; 'point': 0.28; 'function': 0.29; 'am,': 0.29; 'generally': 0.29; 'quickly': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'asked': 0.31; 'code': 0.31; 'page.': 0.31; 'that.': 0.31; 'convenience': 0.31; 'font': 0.31; 'markup': 0.31; 'run': 0.32; 'quite': 0.32; 'text': 0.33; 'up.': 0.33; 'tool': 0.35; 'something': 0.35; 'editor': 0.35; 'one,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'acceptable': 0.36; "didn't": 0.36; "i'll": 0.36; 'subject:?': 0.36; 'similar': 0.36; 'too': 0.37; 'two': 0.37; 'button': 0.38; 'window': 0.38; 'files': 0.38; 'rather': 0.38; 'that,': 0.38; 'visual': 0.39; 'major': 0.40; 'how': 0.40; 'skip:u 10': 0.60; 'easy': 0.60; 'manually': 0.60; 'then,': 0.60; 'new': 0.61; 'course': 0.61; 'simple': 0.61; 'first': 0.61; 'high': 0.63; 'such': 0.63; 'provide': 0.64; 'more': 0.64; 'within': 0.65; '26,': 0.68; 'safe': 0.72; 'jul': 0.74; 'click': 0.77; 'lack': 0.78; 'different.': 0.84; 'events;': 0.84; 'think:': 0.84; 'vulnerable': 0.84; 'thing,': 0.91; 'to:none': 0.92; 'imagine': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=P+4vtEOyQczaHwNE/3oLRNWBsKRO9bmloChuj5p/Fbs=; b=Bt/iyyFVVeygjCM4PquVDPr0Rg94tz/+CRtDCq9Jgs3YKZUZJMU+Xef9rJ5KM9fFLR VIX0LAxLCkYTQQBzF6/tIN/X9OPRlp8+mpgGo77fH6guHvXHuGs+oqjtRKnRYWmu80fx zWy4oqtNHeoYdpk0mz74v5/jeaaYgzUBw3AOZ4wNwao1s5jrUaoypfjjpmLFp/8iRmGO dZ1oaqwFPkUM9oDd79Mw+5zNTmJZDTHMvT7jO1GrHCO64BXFKD+BjclM50u5l56ZApYS VsSdFyJ3wSuVq5LlvA6k6SEv4XRyTJLPIc305+VSBTxIZaWRoVsslJ1ycyttFQznDYy6 usEQ==
MIME-Version 1.0
X-Received by 10.53.13.200 with SMTP id fa8mr6181481vdd.57.1406342409567; Fri, 25 Jul 2014 19:40:09 -0700 (PDT)
In-Reply-To <53D2CAD8.1040306@schwertberger.de>
References <b0a3a9c3-9a57-4e17-95c1-dffb81d0c5ee@googlegroups.com> <53D2CAD8.1040306@schwertberger.de>
Date Sat, 26 Jul 2014 12:40:09 +1000
Subject Re: .Net Like Gui Builder for Python?
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.12327.1406342411.18130.python-list@python.org> (permalink)
Lines 59
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1406342411 news.xs4all.nl 2915 [2001:888:2000:d::a6]:41648
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:75223

Show key headers only | View raw


On Sat, Jul 26, 2014 at 7:23 AM, Dietmar Schwertberger
<maillist@schwertberger.de> wrote:
> Am 25.07.2014 16:55, schrieb Orochi:
>
>> So,Is there any Gui App builder like Visual Studio or having features like
>> Visual Studio for Python.
>
> Unfortunately there's nothing like that.
> IMHO the lack of such a tool is a major blocking point in many (corporate)
> environments...
>
> From the GUI builders that I have tried, wxFormBuilder comes next.

The OP asked for two things, which I'll separate because they're
actually quite different.

1) Drag and drop widgets to create a window
2) Double-click a widget to edit its code (presumably event handler)

I have used a number of GUI toolkits that did provide the first one,
but the second is a lot more restrictive than you might think: it
implies that there's exactly one code block per widget. For simple
projects, you might think "Uhh, yeah, a button has its click event",
but there are plenty of other events to attach to a button, and you
might want to have the same function attached to several buttons
(either because they actually do the same thing, or because they do
very similar things and it's parameterized). The nearest I've seen to
"double-click to edit code" is VX-REXX, which had a right-click menu
with all that widget's events; it didn't cope with having the same
code attached to multiple widgets (for that, you need to manually
attach events), but as that's a lot rarer than having multiple code
blocks attached to one widget (eg a hover event and a click event),
that's acceptable for a convenience feature.

As to dragging and dropping widgets to create a window, though...
that's fine for a pixel-based layout, but it's high time pixel-based
layouts were deprecated. They're vulnerable to way too many variations
(twip-based layouts, like VX-REXX uses, are at least independent of
font size, but still vulnerable to plenty of other issues), and
they're rigid. Cross-platform GUI toolkits are generally based around
rules, rather than exact positions, so you end up with a tree. Think
of HTML and how markup affects layout; you place containers and
containers within containers, and everything is held within its
parent. (Well, okay. With position:relative you can mess that up. And
of course position:absolute and position:fixed basically put a new
top-level window onto the page. But normal object layout is based on
the tree structure.)

Rather than a drag-and-drop builder, then, all you need is a text
editor and a way to quickly run your code. As well as demanding
nothing in terms of development time (believe you me, a good d'n'd
builder would cost quite a few dev hours), this guarantees perfect
accuracy; imagine the hassles if your code ended up producing
something not quite identical to your preview! Take the easy and safe
option, and just write your code and look at it. WYSIWYG editors have
their uses in some places, but more and more I'm seeing them as just
too restrictive. Editing text files is the way to do things.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

.Net Like Gui Builder for Python? Orochi <kartikjagdale11@gmail.com> - 2014-07-25 07:55 -0700
  Re: .Net Like Gui Builder for Python? Orochi <kartikjagdale11@gmail.com> - 2014-07-25 08:19 -0700
  Re: .Net Like Gui Builder for Python? Jerry Hill <malaclypse2@gmail.com> - 2014-07-25 14:11 -0400
  Re: .Net Like Gui Builder for Python? Sturla Molden <sturla.molden@gmail.com> - 2014-07-25 20:04 +0000
  Re: .Net Like Gui Builder for Python? Dietmar Schwertberger <maillist@schwertberger.de> - 2014-07-25 23:23 +0200
  Re: .Net Like Gui Builder for Python? Chris Angelico <rosuav@gmail.com> - 2014-07-26 12:40 +1000
  Re: .Net Like Gui Builder for Python? Michael Torrie <torriem@gmail.com> - 2014-07-25 21:33 -0600
  Re: .Net Like Gui Builder for Python? TP <wingusr@gmail.com> - 2014-07-25 21:13 -0700
  Re: .Net Like Gui Builder for Python? Chris Angelico <rosuav@gmail.com> - 2014-07-26 14:37 +1000
  Re: .Net Like Gui Builder for Python? Martin S <shieldfire@gmail.com> - 2014-07-26 09:19 +0200
  Re: .Net Like Gui Builder for Python? Martin S <shieldfire@gmail.com> - 2014-07-26 09:13 +0200
  Re: .Net Like Gui Builder for Python? Chris Angelico <rosuav@gmail.com> - 2014-07-26 19:05 +1000
  Re: .Net Like Gui Builder for Python? Dietmar Schwertberger <maillist@schwertberger.de> - 2014-07-26 12:14 +0200
  Re: .Net Like Gui Builder for Python? Chris Angelico <rosuav@gmail.com> - 2014-07-26 20:25 +1000
  Re: .Net Like Gui Builder for Python? Martin S <shieldfire@gmail.com> - 2014-07-26 12:33 +0200
  Re: .Net Like Gui Builder for Python? Sturla Molden <sturla.molden@gmail.com> - 2014-07-26 10:51 +0000
    Re: .Net Like Gui Builder for Python? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-07-26 13:44 +0000
  Re: .Net Like Gui Builder for Python? Dietmar Schwertberger <maillist@schwertberger.de> - 2014-07-26 13:28 +0200
  Re: .Net Like Gui Builder for Python? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-07-26 14:40 -0400
    Re: .Net Like Gui Builder for Python? Steve Hayes <hayesstw@telkomsa.net> - 2014-07-27 06:49 +0200
      Re: .Net Like Gui Builder for Python? Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-07-27 10:10 +0200
        Re: .Net Like Gui Builder for Python? Steve Hayes <hayesstw@telkomsa.net> - 2014-07-27 14:24 +0200
          Re: .Net Like Gui Builder for Python? Chris “Kwpolska” Warrick <kwpolska@gmail.com> - 2014-07-27 14:42 +0200
            Re: .Net Like Gui Builder for Python? Steve Hayes <hayesstw@telkomsa.net> - 2014-07-28 04:33 +0200
      Re: .Net Like Gui Builder for Python? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-07-27 11:30 -0400
      Re: .Net Like Gui Builder for Python? Sturla Molden <sturla.molden@gmail.com> - 2014-07-27 18:32 +0000
      Re: .Net Like Gui Builder for Python? Michael Torrie <torriem@gmail.com> - 2014-07-27 22:26 -0600
      Re: .Net Like Gui Builder for Python? Sturla Molden <sturla.molden@gmail.com> - 2014-07-28 10:14 +0000
  Re: .Net Like Gui Builder for Python? CM <cmpython@gmail.com> - 2014-07-27 10:46 -0700
  Re: .Net Like Gui Builder for Python? Kevin Walzer <kw@codebykevin.com> - 2014-07-27 14:48 -0400
    Re: .Net Like Gui Builder for Python? Sturla Molden <sturla.molden@gmail.com> - 2014-07-28 09:59 +0000

csiph-web