Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Dennis Lee Bieber Newsgroups: comp.lang.python Subject: Re: Everything good about Python except GUI IDE? Date: Sun, 28 Feb 2016 11:56:07 -0500 Organization: IISS Elusive Unicorn Lines: 71 Message-ID: References: <64a6599c-fae1-469d-bcee-875165b3cc7d@googlegroups.com> <56d294f8$0$1604$c3e8da3$5496439d@news.astraweb.com> <62084c14-abd1-4214-af08-70ce8449c83e@googlegroups.com> <6dq5db5j0hg2evl7t334ftdm5sk8n5itge@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 73p2kog9zvoK8AXucQLAawg8YpPdhVML37uf/KeF3vwQ== Return-Path: 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; 'handler': 0.04; 'subject:Python': 0.05; 'ide': 0.09; 'integer,': 0.09; 'message- id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'restriction': 0.09; 'rows': 0.09; 'sub': 0.09; 'stored': 0.10; '(last': 0.16; '2016': 0.16; '>on': 0.16; 'element,': 0.16; 'messy': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'subject:GUI': 0.16; 'wrote:': 0.16; 'string': 0.17; 'attribute': 0.18; 'integer': 0.18; 'url:home': 0.18; 'gui': 0.18; 'skip:" 40': 0.20; 'explicit': 0.22; 'appears': 0.23; 'feb': 0.23; 'matching': 0.23; 'xml': 0.24; 'module': 0.25; 'header:X-Complaints-To:1': 0.26; 'moved': 0.27; 'see,': 0.27; 'code': 0.30; 'option': 0.31; 'everyone': 0.31; "can't": 0.32; 'source': 0.33; 'displayed': 0.33; 'definition': 0.34; 'editor': 0.34; 'could': 0.35; 'text': 0.35; 'designer': 0.35; 'false': 0.35; 'quite': 0.35; 'sometimes': 0.35; 'but': 0.36; 'should': 0.36; 'project': 0.36; 'possible': 0.36; 'form,': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'charset:us- ascii': 0.37; 'version': 0.38; 'why': 0.39; 'whatever': 0.39; 'enough': 0.39; 'along': 0.39; 'to:addr:python.org': 0.40; 'where': 0.40; 'space': 0.40; 'some': 0.40; 'hand': 0.82; 'designer.': 0.84; 'study,': 0.84; 'subject:good': 0.84; 'utc+5:30,': 0.84; 'dennis': 0.91 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: adsl-108-68-177-63.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103650 On Sun, 28 Feb 2016 05:13:57 -0800 (PST), Rustom Mody declaimed the following: >On Sunday, February 28, 2016 at 6:38:40 PM UTC+5:30, Gordon Levi wrote: >> Why can't whatever is generated by a GUI form designer be stored in >> source control along with all the other project files? The only >> restriction would be that everyone who wants to change the UI would >> have to use the same form designer. > >Glade generates XML (last I saw) >XML is text... kinda... but not quite >eg XML is sometimes/somewhere space sensitive, sometimes not >This can generate messy diffs > >Best I can see, these are not exactly trivial nor quite impossible to solve problems And VB6 hid the text representation in the form module VERSION 5.00 Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX" Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX" Begin VB.Form frmMain BorderStyle = 1 'Fixed Single Caption = "Jeparody" ClientHeight = 8010 ClientLeft = -105 ClientTop = 450 ClientWidth = 11535 BeginProperty Font Name = "MS Sans Serif" Size = 9.75 Charset = 0 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty LinkTopic = "Form1" Begin VB.Menu mnuHelp Caption = "&Help" Begin VB.Menu mnuHelpAbout Caption = "&About " End End End Attribute VB_Name = "frmMain" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Option Explicit Dim Trivia(COLS - 1, ROWS - 1, 1) As String Dim DDoubles(1) As Integer Private Sub Command1_Click(Index As Integer) Dim aRow As Integer, aCol As Integer The VB IDE used everything above the "Option Explicit" to create the form, and displayed the bottom as the handler code for editing. With enough study, one could hand edit the form definition -- just need to use some non-Visual Studio editor Differencing should be possible too, though if one moved a GUI element, matching up where it now appears in the text may not be easy. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/