On Sunday, January 26, 2014 4:45:59 AM UTC+2, Mark Lawrence wrote:
> On 26/01/2014 02:33, Steven D'Aprano wrote:
>
> If I worked as a consultant I'd much prefer the XML version as I'd be
> able to charge much more on the grounds that I'd done much more, hoping
> that the people paying didn't bot
On Sunday, January 26, 2014 2:42:57 PM UTC+5:30, Frank Millman wrote:
> "Rustom Mody" wrote:
> > Xml, originally a document format, is nowadays used as a data-format.
> > This conduces to humongous messing, first for the xml-library writers, and
> > thence to the users of those libraries because l
On Sun, 26 Jan 2014 08:03:18 +0200, Frank Millman wrote:
> I do not expect anyone to read or edit the XML - it is just a storage
> format. I am sure it could be done in JSON or YAML as well.
But that's not what you originally said. You stated:
"here is how I would write your simple 'About' box"
On Sun, 26 Jan 2014 15:06:15 +1100, Chris Angelico wrote:
> Code isn't something to be afraid of.
Not according to the Laundry series by Charles Stross. The protagonist of
the series was "recruited" to the Laundry after the computer program he
was working on almost summoned Nyarlathotep the Cr
"Rustom Mody" wrote in message
news:3683cd10-592b-4a3d-ba77-b963a1aa2...@googlegroups.com...
>
> Xml, originally a document format, is nowadays used as a data-format.
> This conduces to humongous messing, first for the xml-library writers, and
> thence to the users of those libraries because lib
On Sunday, January 26, 2014 10:53:32 AM UTC+5:30, Chris Angelico wrote:
> On Sun, Jan 26, 2014 at 3:47 PM, Rustom Mody wrote:
> > On Sunday, January 26, 2014 9:36:15 AM UTC+5:30, Chris Angelico wrote:
> >> Code isn't something to be afraid of. It's just text files like any
> >> other. After all, Py
"Steven D'Aprano" wrote in message
news:52e473fc$0$2$c3e8da3$54964...@news.astraweb.com...
> On Sat, 25 Jan 2014 09:18:44 +0200, Frank Millman wrote:
>
>> I have realised that we unlikely to come to an agreement on this in the
>> near future, as our philosophies are completely different.
>>
On Sun, Jan 26, 2014 at 3:47 PM, Rustom Mody wrote:
> On Sunday, January 26, 2014 9:36:15 AM UTC+5:30, Chris Angelico wrote:
>> Code isn't something to be afraid of. It's just text files like any
>> other. After all, Python code is a config file for /usr/bin/python, so
>> if you want to change wha
On Sunday, January 26, 2014 9:36:15 AM UTC+5:30, Chris Angelico wrote:
> Code isn't something to be afraid of. It's just text files like any
> other. After all, Python code is a config file for /usr/bin/python, so
> if you want to change what Python does, just edit its config file!
Windows stores
On Sun, Jan 26, 2014 at 1:45 PM, Mark Lawrence wrote:
> If I worked as a consultant I'd much prefer the XML version as I'd be able
> to charge much more on the grounds that I'd done much more, hoping that the
> people paying didn't bother with design reviews or the like :)
And that's very true. I
On Sun, Jan 26, 2014 at 1:33 PM, Steven D'Aprano
wrote:
>> Here is your version -
>>
>> mainwindow = GTK2.Window(0)->add(GTK2.Vbox(0,0)
>> ->add(GTK2.Label("About Gypsum: big long multi-line string"))
>> ->add(GTK2.HbuttonBox()
>> ->add(GTK2.Button("Close"))
>> ->add(GTK2.B
On 26/01/2014 02:33, Steven D'Aprano wrote:
Here's a simple programming expression, familiar to most people, common
to hundreds of programming languages:
3+4*5
Here it is written as XML:
345
Source:
http://www.ibm.com/developerworks/xml/library/x-sbxml/index.html
More here:
http://www.codin
On Sat, 25 Jan 2014 09:18:44 +0200, Frank Millman wrote:
> I have realised that we unlikely to come to an agreement on this in the
> near future, as our philosophies are completely different.
>
> You [Chris Angelo] have stated that your objective is to express as
> much as possible in Python code
[This message has also been posted to gmane.comp.python.general.]
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 2014-01-25, 07:18 GMT, Frank Millman wrote:
> I have stated that my objective is to express as little as
> possible in Python code.
Yes, and I believe that it is very wrong. But any
On Sat, Jan 25, 2014 at 6:18 PM, Frank Millman wrote:
> I have realised that we unlikely to come to an agreement on this in the near
> future, as our philosophies are completely different.
>
> You have stated that your objective is to express as much as possible in
> Python code.
>
> I have stated
"Chris Angelico" wrote in message
news:CAPTjJmpi-kvJAVs2gK+nH5n6q3REkJaKR=czerfzugdk8_v...@mail.gmail.com...
> On Fri, Jan 24, 2014 at 11:49 PM, Frank Millman
> wrote:
>>
>
[...]
I have realised that we unlikely to come to an agreement on this in the near
future, as our philosophies are com
Hi again , I'm sorry I dind't reply earlier I still hav enot added myself to
the list (I'm doing this trhough google groups).
Thanks Asaf, but I don't like having the code and the GUI separated.
First,I'm not aiming to not programmers (or people qho don't want to be one)
because they may be ab
On Sat, Jan 25, 2014 at 3:28 AM, Matěj Cepl wrote:
> On 2014-01-24, 11:18 GMT, you wrote:
>> Write your rendering engine as a few simple helper functions,
>> and then put all the rest in as code instead of XML. The
>> easiest way to go about it is to write three forms, from
>> scratch, and then lo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 2014-01-24, 11:18 GMT, you wrote:
> Write your rendering engine as a few simple helper functions,
> and then put all the rest in as code instead of XML. The
> easiest way to go about it is to write three forms, from
> scratch, and then look at th
On Fri, Jan 24, 2014 at 11:49 PM, Frank Millman wrote:
>
> "Chris Angelico" wrote in message
> news:captjjmo+euy439wb0c8or+zacyenr844hakwl3i2+55dde8...@mail.gmail.com...
>> On Fri, Jan 24, 2014 at 8:21 PM, Frank Millman wrote:
>>> I find that I am using JSON and XML more and more in my project,
On 01/24/14 11:21, Frank Millman wrote:
> I store database metadata in the database itself. I have a table that
> defines each table in the database, and I have a table that defines each
> column. Column definitions include information such as data type, allow
> null, allow amend, maximum length
"Rustom Mody" wrote in message
news:39e1dd33-2162-40ea-8676-d27c8360a...@googlegroups.com...
> On Friday, January 24, 2014 2:51:12 PM UTC+5:30, Frank Millman wrote:
>
Comments welcome.
>
> Of json/XML/yml I prefer yml because it has the terseness of json and the
> structuredness of xml -- well
"Chris Angelico" wrote in message
news:captjjmo+euy439wb0c8or+zacyenr844hakwl3i2+55dde8...@mail.gmail.com...
> On Fri, Jan 24, 2014 at 8:21 PM, Frank Millman wrote:
>> I find that I am using JSON and XML more and more in my project, so I
>> thought I would explain what I am doing to see if othe
On Wednesday, January 15, 2014 7:02:08 PM UTC+2, Sergio Tortosa Benedito wrote:
> Hi I'm developing a sort of language extension for writing GUI programs
> called guilang, right now it's written in Lua but I'm considreing Python
> instead (because it's more tailored to alone applications). My quest
On Fri, Jan 24, 2014 at 8:21 PM, Frank Millman wrote:
> I find that I am using JSON and XML more and more in my project, so I
> thought I would explain what I am doing to see if others think this is an
> acceptable approach or if I have taken a wrong turn.
Please don't take this the wrong way, bu
On Friday, January 24, 2014 2:51:12 PM UTC+5:30, Frank Millman wrote:
> Incidentally, I would take issue with the comment that 'JSON is easily
> readable by humans (UNLIKE XML)'. Here is a more complete example of my
> 'choices' definition.
> [true, true, [["admin", "System administrator", [],
"Chris Angelico" wrote in message
news:CAPTjJmokZUHta7Y3x_=6eujkpv2td2iaqro1su7nulo+gfz...@mail.gmail.com...
> On Thu, Jan 23, 2014 at 8:16 AM, Asaf Las wrote:
>> i am novice in python, but let me suggest you something:
>> it would be beneficial to use json text file to specify
>> your gui so c
On 1/22/2014 9:29 PM, Chris Angelico wrote:
On Thu, Jan 23, 2014 at 8:16 AM, Asaf Las wrote:
i am novice in python, but let me suggest you something:
it would be beneficial to use json text file to specify
your gui so composite data structure can be created using
json and then your program can
On Thu, Jan 23, 2014 at 8:16 AM, Asaf Las wrote:
> i am novice in python, but let me suggest you something:
> it would be beneficial to use json text file to specify
> your gui so composite data structure can be created using
> json and then your program can construct window giving
> its content w
On Wednesday, January 15, 2014 7:02:08 PM UTC+2, Sergio Tortosa Benedito wrote:
> Hi I'm developing a sort of language extension for writing GUI programs
> called guilang, right now it's written in Lua but I'm considreing Python
> instead (because it's more tailored to alone applications). My quest
El miércoles, 15 de enero de 2014 18:02:08 UTC+1, Sergio Tortosa Benedito
escribió:
> Hi I'm developing a sort of language extension for writing GUI programs
>
> called guilang, right now it's written in Lua but I'm considreing Python
>
> instead (because it's more tailored to alone application
Looking at my own code after four years, I just realized that most of
parentheses can be avoided by redefining the += operators to be a synonym of
the add method.
Go figure, I guess that with age it _does_ come a little wisdom ... :-)
Ciao
-
FB
--
https://mail.python.org/mailman/listinfo/p
El miércoles, 15 de enero de 2014 18:02:08 UTC+1, Sergio Tortosa Benedito
escribió:
> Hi I'm developing a sort of language extension for writing GUI programs
>
> called guilang, right now it's written in Lua but I'm considreing Python
>
> instead (because it's more tailored to alone application
serto...@gmail.com wrote:
>
>First, I don't like that all parenthesis, I like to differentiate
>which type of delimiter is, this is not so bad if using spaces but
>anyways it's a little more difficult. Second, In regard, to using
>something like myWindow=Window rather than Window "myWindow", at
El miércoles, 15 de enero de 2014 18:02:08 UTC+1, Sergio Tortosa Benedito
escribió:
> Hi I'm developing a sort of language extension for writing GUI programs
>
> called guilang, right now it's written in Lua but I'm considreing Python
>
> instead (because it's more tailored to alone application
Some time ago I played with Tkinter trying a more declarative way of coding the
GUI building part and I come out with this:
top = Tk( 'top' ).add (
Frame( 'frame' ).add (
Pack( side = 'top' ),
Frame ( 'panel1' ).add (
Pack( s
On 1/15/2014 6:09 PM, Chris Angelico wrote:
On Thu, Jan 16, 2014 at 9:58 AM, Terry Reedy wrote:
class Window:
def __init__(self, title, *kwds) # or title='Window title'
self.title = title
self.__dict__.update(kwds)
Does that want a second asterisk, matching the Button
On Thu, Jan 16, 2014 at 11:48 AM, Tim Chase
wrote:
> On 2014-01-16 10:09, Chris Angelico wrote:
>> myWindow = Window(
>> title="Hello World",
>> children=[Button(
>> label="I'm a button",
>> onClick=exit
>> )]
>> )
>
> This also solves the problem that **kwargs are
On 2014-01-16 10:09, Chris Angelico wrote:
> myWindow = Window(
> title="Hello World",
> children=[Button(
> label="I'm a button",
> onClick=exit
> )]
> )
This also solves the problem that **kwargs are just a dict, which is
inherently unordered. So with the previo
On Thu, Jan 16, 2014 at 9:58 AM, Terry Reedy wrote:
> class Window:
> def __init__(self, title, *kwds) # or title='Window title'
> self.title = title
> self.__dict__.update(kwds)
Does that want a second asterisk, matching the Button definition?
>> Possible, but potentially m
On 1/15/2014 12:33 PM, Chris Angelico wrote:
On Thu, Jan 16, 2014 at 4:02 AM, Sergio Tortosa Benedito
wrote:
Hi I'm developing a sort of language extension for writing GUI programs
called guilang, right now it's written in Lua but I'm considreing Python
instead (because it's more tailored to al
On Thu, Jan 16, 2014 at 4:02 AM, Sergio Tortosa Benedito
wrote:
> Hi I'm developing a sort of language extension for writing GUI programs
> called guilang, right now it's written in Lua but I'm considreing Python
> instead (because it's more tailored to alone applications). My question
> it's if I
Hi I'm developing a sort of language extension for writing GUI programs
called guilang, right now it's written in Lua but I'm considreing Python
instead (because it's more tailored to alone applications). My question
it's if I can achieve this declarative-thing in python. Here's an
example:
Window
43 matches
Mail list logo