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


Groups > comp.lang.python > #10941

Re: Table Driven GUI Definition?

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <tundra@tundraware.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'suppose': 0.05; 'python': 0.08; '>>>>': 0.09; 'interfaces': 0.12; 'gui': 0.13; '"windows': 0.16; 'anyone?': 0.16; 'checkbox': 0.16; 'clear.': 0.16; 'cygwin,': 0.16; 'input.': 0.16; 'osx': 0.16; 'regenerate': 0.16; 'semanchuk': 0.16; 'subject:GUI': 0.16; 'templating': 0.16; 'thick': 0.16; 'tkinter,': 0.16; 'cc:addr:python-list': 0.16; 'this:': 0.16; 'wrote:': 0.16; 'linux': 0.17; '>>>': 0.18; 'describes': 0.18; 'seems': 0.20; 'bonus': 0.21; 'file,': 0.21; 'maybe': 0.21; "doesn't": 0.22; 'cc:2**0': 0.22; 'header:In-Reply- To:1': 0.22; 'cheers': 0.23; 'interface': 0.23; '(or': 0.23; "user's": 0.23; 'pm,': 0.24; 'aug': 0.24; 'code': 0.25; 'code.': 0.26; 'windows': 0.26; "i'm": 0.27; 'skip:_ 20': 0.28; 'described': 0.28; 'modify': 0.28; 'looks': 0.29; 'cc:addr:python.org': 0.30; 'definition': 0.30; 'environment.': 0.30; 'os,': 0.30; 'solved': 0.30; 'toolkit': 0.30; 'installation': 0.30; 'equivalent': 0.31; 'subject:?': 0.31; 'seem': 0.31; 'this.': 0.32; "isn't": 0.33; 'it.': 0.33; 'actually': 0.33; 'there': 0.33; 'operating': 0.33; 'someone': 0.34; 'header:User-Agent:1': 0.34; 'describe': 0.34; 'idea': 0.34; 'like:': 0.34; 'options:': 0.34; 'sense,': 0.34; 'pretty': 0.35; 'rather': 0.35; 'similar': 0.35; 'record': 0.35; '(for': 0.35; 'problem.': 0.36; 'connection': 0.36; 'file': 0.36; 'page.': 0.36; 'skip:" 10': 0.36; 'example,': 0.37; 'model': 0.37; 'received:75': 0.37; 'run': 0.37; 'but': 0.37; 'page': 0.37; 'something': 0.37; 'options': 0.37; 'presentation': 0.38; 'some': 0.38; 'should': 0.38; 'subject:: ': 0.39; 'received:192': 0.39; 'client': 0.39; 'option': 0.39; 'else': 0.39; 'basic': 0.39; 'missing': 0.39; 'selection': 0.39; 'data': 0.39; "i'd": 0.40; 'might': 0.40; 'where': 0.40; 'more': 0.60; 'your': 0.61; 'basis': 0.61; 'kind': 0.61; 'services': 0.62; 'further': 0.64; 'act': 0.65; '"what': 0.67; 'selected': 0.68; 'touch': 0.68; 'become': 0.71; 'me;': 0.84; 'received:75.145': 0.84; 'something.': 0.84; 'thereafter,': 0.84; 'variation': 0.84
Date Fri, 05 Aug 2011 17:20:16 -0500
From Tim Daneliuk <tundra@tundraware.com>
User-Agent Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0
MIME-Version 1.0
Newsgroups comp.lang.python
To Philip Semanchuk <philip@semanchuk.com>
Subject Re: Table Driven GUI Definition?
References <f9ntg8-735.ln1@ozzie.tundraware.com> <4e3c3eee$0$23931$e4fe514c@news2.news.xs4all.nl> <u9vtg8-u57.ln1@ozzie.tundraware.com> <mailman.1943.1312576961.1164.python-list@python.org>
In-Reply-To <mailman.1943.1312576961.1164.python-list@python.org>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Greylist Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (ozzie.tundraware.com [75.145.138.73]); Fri, 05 Aug 2011 17:20:22 -0500 (CDT)
X-TundraWare-MailScanner-Information Please contact the ISP for more information
X-TundraWare-MailScanner-ID p75MKLAA008872
X-TundraWare-MailScanner Found to be clean
X-TundraWare-MailScanner-From tundra@tundraware.com
X-Spam-Status No
Cc Lista-Comp-Lang-Python list <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Message-ID <mailman.1952.1312583600.1164.python-list@python.org> (permalink)
Lines 73
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1312583600 news.xs4all.nl 23881 [2001:888:2000:d::a6]:54964
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:10941

Show key headers only | View raw


On 8/5/2011 3:42 PM, Philip Semanchuk wrote:
>
> On Aug 5, 2011, at 4:10 PM, Tim Daneliuk wrote:
>
>> On 8/5/2011 2:05 PM, Irmen de Jong said this:
>>> On 05-08-11 19:53, Tim Daneliuk wrote:
>>>> I have a task where I want to create pretty simple one page visual
>>>> interfaces (Graphical or Text, but it needs to run across Windows,
>>>> Cygwin, Linux,*BSD, OSX ...).  These interfaces are nothing more
>>>> than option checklists and text fields.  Conceptually something like:
>>>>
>>>>                  Please Select Your Installation Options:
>>>>
>>>>             Windows Compatibility Services  _
>>>>             Linux Compatibility Services    _
>>>>             TRS-DOS Compatibility Services  _
>>>>
>>>>             What Is Your email Address:     _______________________
>>>>
>>>> What I'm looking for is a way to describe such forms in a text
>>>> file that can then be fed into a tool to generate the necessary
>>>> pyGUI, Tkinter, (or whatever) code.   The idea is that it should
>>>> be simple to generate a basic interface like this and have it
>>>> only record the user's input.  Thereafter, the python code
>>>> would act on the basis of those selection without any further
>>>> connection to the GUI.
>>>>
>>>> An added bonus would be a similar kind of thing for generating
>>>> web interfaces to do this.  This might actually be a better model
>>>> because then I only have to worry about a single presentation
>>>> environment.
>>>>
>>>> Ideas anyone?
>
> Hi Tim
> This looks pretty straightforward to me; maybe I'm missing something. It doesn't look trivial, but the steps seem pretty clear. Is there some part in particular that's giving you trouble?
>
> Cheers
> Philip
>

I want to take a text definition file that looks something this:

   Title         "Please Select Your Installation Options:"


   Checkbox      "Windows Compatibility Services"
   Checkbox      "Linux Compatibility Services"
   Checkbox      "TRS-DOS Compatibility Services"

   Inputbox       "What Is Your email Address:"


And have that aut-generate the GUI interface described above for the
selected GUI toolkit and/or an equivalent HTML page.

I know I can write a program to do this, but it seems that someone else
may have already solved this problem.

Appearance isn't terribly important.  I want a "Quick-And-Dirty" configuration
manager interface (for configuring new operating system VMs).  The reason
that I want a simple text file definition is to make it easy to add new
options to the display as they become available.  For example, suppose
it becomes possible to work with a new OS, then all I'd have to do is
add the following to the text definition file, and regenerate the interface:

   Checkbox      "MVS Compatibility Services"

The idea is to not have to touch the code base as the options of the GUI
evolve, but rather to modify the data file that describes it.  In some sense,
this is a variation of HTML templating except I want to do it (potentially)
with a thick client GUI.

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


Thread

Table Driven GUI Definition? Tim Daneliuk <tundra@tundraware.com> - 2011-08-05 12:53 -0500
  Re: Table Driven GUI Definition? Irmen de Jong <irmen@-NOSPAM-xs4all.nl> - 2011-08-05 21:05 +0200
    Re: Table Driven GUI Definition? Tim Daneliuk <tundra@tundraware.com> - 2011-08-05 15:10 -0500
      Re: Table Driven GUI Definition? Philip Semanchuk <philip@semanchuk.com> - 2011-08-05 16:42 -0400
        Re: Table Driven GUI Definition? Tim Daneliuk <tundra@tundraware.com> - 2011-08-05 17:20 -0500
          Re: Table Driven GUI Definition? Philip Semanchuk <philip@semanchuk.com> - 2011-08-05 18:51 -0400
            Re: Table Driven GUI Definition? Tim Daneliuk <tundra@tundraware.com> - 2011-08-05 18:57 -0500
        Re: Table Driven GUI Definition? Tim Daneliuk <tundra@tundraware.com> - 2011-08-05 17:20 -0500
  Re: Table Driven GUI Definition? Emile van Sebille <emile@fenx.com> - 2011-08-05 13:16 -0700
  Re: Table Driven GUI Definition? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2011-08-05 23:49 -0700

csiph-web