Generating wxPython layout using something like XML/HTML markup, etc.

Firstly, I am a new list member - hullo there.

Secondly, will mention that I am a blind/VI computer user, and therefore, not all IDE’s, UI’s etc. are all that usable/useful to me, but anyway - for example, while wxPython based UI’s work fine, most of the time, tkinter is of not much interest/use to me.

And, now down to what’s in the subject line - while my primary development platform/programming languages are web-based applications, primarily making use of PHP, javascript, MySQL, ajax, etc., my sort of secondary focus area is python, and on my current primary development machine - windows7 64 bit, I am currently working with python 2.7, and have been working with versions of implementations of wxPython, since it’s output UI works roundabout best for users of screenreaders, etc.

Have primarily been using a module called layout-by-code/LBC, to generate simple/quick UI aspects, but, issue there is limited control scope, as well as less control over actual layout of interface elements.

Now, since I work primarily in web-content platform, something like XML-based interface markup would most likely suit me best/work well, and know something like XRCed is meant to help with this, but, am not currently able to test/try it out as of yet, and I did also come across following page relating to generating UI layout like this, but, can’t find way to actually get GTK running/working under my current install/configuration:

http://www.aclevername.com/articles/python-webgui/

Anyway, what it comes down to is, would like to be able to work on decent UI layout control, with all sorts of different interface elements, like menu’s, etc., and all in a combination that should then be able to ‘compile’ into a sort of stand-alone executable for the windows platform using py2exe, or something like that?

TIA

Jacob Kruger
Blind Biker
Skype: BlindZA
‘…fate had broken his body, but not his spirit…’

Jacob Kruger wrote:

Firstly, I am a new list member - hullo there.

Hi Jacob.

Anyway, what it comes down to is, would like to be able to work on
decent UI layout control, with all sorts of different interface
elements, like menu's, etc., and all in a combination that should then
be able to 'compile' into a sort of stand-alone executable for the
windows platform using py2exe, or something like that?

In wxWidgets there are features that enable defining GUI components and layout using an XML format, called XRC. wxPython also supports using XRC and the XRCed tool that you mentioned is meant to be an editor for XRC that can also generate a Python skeleton that uses the XRC. However XRCed hasn't been well maintained and so it does not have full coverage of all the supported widgets and has some bugs you may not want to deal with. There are other tools that can generate the XRC XML code as well, for example DialogBlocks or wxFormBuilder, and there is a command-line tool called pywxrc distributed with wxPython that can generate the skeleton Python module for you.

Good luck!

···

--
Robin Dunn
Software Craftsman

Enaml has support for wxpython. The author is primarily a PyQt user, so enaml’s wxpython support is not as good as its PyQt support. I’m sure the author is open to contributions from wxpython folk.

http://nucleic.github.io/enaml/docs/index.html

Dave Cook

Enaml has support for wxpython. The author is primarily a PyQt user, so
enaml's wxpython support is not as good as its PyQt support. I'm sure
the author is open to contributions from wxpython folk.

Enaml does look pretty cool, though I wonder how its "contraints" concept
mapps to sizers...

Can you point to _any_ mention of wxPython documented somewhere? I looked
around a bit and found nothing...

-Thanks,
  -Chris

···

On Sat, Dec 28, 2013 at 11:35 PM, Daverz <daverz@gmail.com> wrote:

http://nucleic.github.io/enaml/docs/index.html

Dave Cook

--
You received this message because you are subscribed to the Google Groups
"wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to wxpython-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov

It’s
not mentioned in the newest docs for some reason. However, the wx code
is still in v0.8.9 and the repository, and seems to work for the examples I tried. You can use enaml-run to run some of the layout examples with wx instead of qt.

enaml-run -t wx foo.enaml

In the example .py files, just do a string replace from qt to wx and Qt to Wx. I just checked that this works for the employee.py example and enaml 0.8.9.

Note that with this latest version enaml is no longer dependent on Traits, which is a relief.

Since
Chris Colbert seems to be focusing his time on PyQt, it may take some interest from wx developers to bring enaml’s wx backend fully up to the level of its qt backend. I think that would be preferable to reinventing the wheel.

Dave Cook

···

On Monday, December 30, 2013 8:57:33 AM UTC-8, Chris Barker wrote:

Can you point to any mention of wxPython documented somewhere? I looked around a bit and found nothing…