Connecting Tech Pros Worldwide Forums | Help | Site Map

VB-like GUI designer?

Fred
Guest
 
Posts: n/a
#1: Jul 18 '05
Hi,

I'm currently checking out Python as an alternative to VB.Net
to moving from VB, but can't find a GUI designer that is as good as
VB.

I tried wxDesigner and wxGlade, but neither lets me move the widgets
around. I also tried Dialogblocks, but it seems to only handle C++ or
XRC, not Python.

Is this all there is, or is there a gem I missed?

Thank you
Fred.

Gary
Guest
 
Posts: n/a
#2: Jul 18 '05

re: VB-like GUI designer?


On Mon, 09 Aug 2004 16:38:14 +0200, Fred <nobody@nowhere.com> ,
created a minor stir when he wrote:
[color=blue]
>Hi,
>
> I'm currently checking out Python as an alternative to VB.Net
>to moving from VB, but can't find a GUI designer that is as good as
>VB.
>
>I tried wxDesigner and wxGlade, but neither lets me move the widgets
>around. I also tried Dialogblocks, but it seems to only handle C++ or
>XRC, not Python.
>
>Is this all there is, or is there a gem I missed?
>
>Thank you
>Fred.[/color]

Boa Constructor is a diamond in the rough:
http://boa-constructor.sourceforge.n...8-snapshot.tgz

The above link was found in the forums section at Sourceforge's link
to Boa: http://sourceforge.net/projects/boa-constructor/

(the current version shown at sourceforge is 0.2.3).

wxPython is required, but the most recent release (2.5.1.5) is
apparently not yet compatible with Boa - use 2.4.2.4 instead:
http://sourceforge.net/project/showf...ease_id=188259
--
Doug Holton
Guest
 
Posts: n/a
#3: Jul 18 '05

re: VB-like GUI designer?


Fred wrote:
[color=blue]
> Hi,
>
> I'm currently checking out Python as an alternative to VB.Net
> to moving from VB, but can't find a GUI designer that is as good as
> VB.
>
> I tried wxDesigner and wxGlade, but neither lets me move the widgets
> around. I also tried Dialogblocks, but it seems to only handle C++ or
> XRC, not Python.
>
> Is this all there is, or is there a gem I missed?
>[/color]

QT Designer, which you can use with PyQT and PyKDE (if on Linux), is
probably most like the VB GUI builder. But it is not free if you want
to develop Windows apps (you'd probably want to purchase the BlackAdder
version: http://www.thekompany.com/products/blackadder/ ).

But the best python GUI API on Windows is wxPython. Check out the
demo.py that comes with it. I don't like any of the GUI designers for
it, but I haven't really needed one.
Peter Hansen
Guest
 
Posts: n/a
#4: Jul 18 '05

re: VB-like GUI designer?


Gary wrote:
[color=blue]
> Boa Constructor is a diamond in the rough:
> http://boa-constructor.sourceforge.n...8-snapshot.tgz[/color]

Didn't you mean "a snake in the grass"? ;-)
Neuruss
Guest
 
Posts: n/a
#5: Jul 18 '05

re: VB-like GUI designer?


Two options:
1) Boa Constructor: is the closest you can find to VB or Delphi. It's
free and based on wxPython.
2) PythonCard: this is the asiest to learn and use by far. However,
there are some widgets that are not implemented (no datagrid, for
example).

There is at least one commercial product, BlackAdder, but it didn't
impress me at all (it's trial version is a little bit annoying, since
it doesn't let you save your work and it seems to close every few
minutes, so you never get anything done...).

As for the two mentioned above, I can say that I love PythonCard. It's
like a very intuitive and simple (very simple) VB, but as I said, it
is not very complete at this moment.
I tried Boa Constructor a couple of times, and it seemed to me a
little bit difficult to understand how it works, but I didn't try hard
enough..
Fred
Guest
 
Posts: n/a
#6: Jul 18 '05

re: VB-like GUI designer?


On 9 Aug 2004 10:35:45 -0700, luismg@gmx.net (Neuruss) wrote:
(snip)

Thx everyone for the feedback. I just took a look at Boa,
BlackAdder, and PythonCard.

For those VB developers out there, here's some notes:

- Like wxGlade, Boa is based on wxWidgets, but doesn't seem to have a
GUI builder. You just add widgets to a list, and I assume you have to
set the coordinates and properties through code only. Also, Boa hasn't
been updated since April 2003

- PythonCard is apparently since a prototype, so very risky to start
using this to write professionnal apps. Besides, it doesn't seem to
offer a grid object, which is a must for a lot of business apps

- BlackAdder is an IDE from the Kompany (KDE), uses the QT widgets and
the PyQT wrapper, and comes with the QT Designer GUI tool. So far,
it's the only VB-like IDE I found, but I don't know how good it is
(didn't check during install whether Python and PyQT were installed;
The IDE started with a non-standard, 14-point font, etc.)

Now, for some more questions:

- Since the goal is to avoid getting trapped again, I'm concerned
about using non-native Windows widgets, and rely on either wxWidgets
or the commercial QT widgets set.
Is there a GUI designer that just uses the native widgets and possibly
COM controls like VB instead? Our customers are very unlikely to ever
leave Windows for Linux, so I don't need cross-platform widgets

- Is there a good grid object in wxWidgets or QT similar to eg.
ComponentOne's VSFlexGrid?
I'm especially concerned about ease of use (FlexGrid can be linked to
an array, which makes it a snap to read/write data from/to an SQL
server like SQLite), performance, and features (eg. can I print the
grind and have a nice layout, or must I handle the printing part
myself?)

- Is there a GUI designer for wxWidgets that is on par with QT
Designer? If not, does wxWidgets have more to offer than the QT
widgets set, which would make it a better choice even if no good GUI
designer is yet available for wxW?

- And last, since we're on the subject of tools available to switch
from VB... is there a good compiler so as to distribute a GUI Python
built on either wxW or QT?
I've seen a bunch of tools like py2exe, freeze, pyPack, Psyco,
McMillan (RIP?), and distutils, so am a bit lost. Which would you
recommend?

Thank you very much for your help
Fred.
Detlev Offenbach
Guest
 
Posts: n/a
#7: Jul 18 '05

re: VB-like GUI designer?


Fred wrote:
[color=blue]
> Hi,
>
> I'm currently checking out Python as an alternative to VB.Net
> to moving from VB, but can't find a GUI designer that is as good as
> VB.
>
> I tried wxDesigner and wxGlade, but neither lets me move the widgets
> around. I also tried Dialogblocks, but it seems to only handle C++ or
> XRC, not Python.
>
> Is this all there is, or is there a gem I missed?
>
> Thank you
> Fred.[/color]

Give "eric3" a try (http://www.die-offenbachs.de/detlev/eric3.html). It
is a complete Python IDE using Qt-Designer for GUI development and
Qt-Linguist for translating the GUI.

Detlev
--
Detlev Offenbach
detlev@die-offenbachs.de
simo
Guest
 
Posts: n/a
#8: Jul 18 '05

re: VB-like GUI designer?


Fred <nobody@nowhere.com> wrote:

[snip][color=blue]
> I tried wxDesigner and wxGlade, but neither lets me move the widgets
> around.[/color]

Dunno what you're smoking there man!
[color=blue]
> I also tried Dialogblocks, but it seems to only handle C++ or XRC, not Python.[/color]

I don't know that one.
[color=blue]
> Is this all there is, or is there a gem I missed?[/color]

Qt Designer (for use with PyQt though) or just hand-code the layout,
it ain't that hard.....
Olivier Thiery
Guest
 
Posts: n/a
#9: Jul 18 '05

re: VB-like GUI designer?


Hello,
[color=blue]
> - Like wxGlade, Boa is based on wxWidgets, but doesn't seem to have a
> GUI builder. You just add widgets to a list, and I assume you have to[/color]

I'm afraid it's wrong: Boa does include a (pretty usable) GUI builder,
although it (oddly) better works on windows than linux. It handles even
sizers.
[color=blue]
> set the coordinates and properties through code only. Also, Boa hasn't
> been updated since April 2003[/color]

Wrong again: the last official release is 0.2.3 (see sf.net), but you can
search google for a more recent downloadable 0.2.8 tgz.

Boa may seem difficult to understand at first, but the (short) doc is very
useful. You have to read it carefully first, especially the tutorial.

Olivier
Fred
Guest
 
Posts: n/a
#10: Jul 18 '05

re: VB-like GUI designer?


On Mon, 09 Aug 2004 21:05:14 +0200, Olivier Thiery
<olivierthiery@free.fr> wrote:[color=blue]
>I'm afraid it's wrong: Boa does include a (pretty usable) GUI builder,
>although it (oddly) better works on windows than linux. It handles even
>sizers.[/color]

Thx for the tip. Digging deeper, I figured out how to get a GUI
designer window.

For newbies: In the Palette, select the New tab, click on the 5th icon
which says wxApp, which generates two source files in the Editor
window: wxApp1 and wxFrame1. Select wxFrame1, then select File >
Frame Designer, and create objects by selecting widgets in the Palette
window.
[color=blue]
>Wrong again: the last official release is 0.2.3 (see sf.net), but you can
>search google for a more recent downloadable 0.2.8 tgz.[/color]

OK, too bad it's not mentionned in the News section on their project
page. I'll check it out.

It can be downloaded here:

http://boa-constructor.sourceforge.n...8-snapshot.tgz

Thx
Fred.
Fred
Guest
 
Posts: n/a
#11: Jul 18 '05

re: VB-like GUI designer?


On Mon, 09 Aug 2004 20:20:27 +0200, Detlev Offenbach
<detlev@die-offenbachs.de> wrote:[color=blue]
>Give "eric3" a try (http://www.die-offenbachs.de/detlev/eric3.html). It
>is a complete Python IDE using Qt-Designer for GUI development and
>Qt-Linguist for translating the GUI.[/color]

Thx for the link :-)

Fred.
Fred
Guest
 
Posts: n/a
#12: Jul 18 '05

re: VB-like GUI designer?


On 9 Aug 2004 11:48:34 -0700, simoninusa2001@yahoo.co.uk (simo) wrote:[color=blue][color=green]
>> I tried wxDesigner and wxGlade, but neither lets me move the widgets
>> around.[/color]
>
>Dunno what you're smoking there man![/color]

OK, I figured it out. Note to newbies: Read up on wxWidgets before
using those two tools, at least its concept of "sizers"...
[color=blue]
>Qt Designer (for use with PyQt though) or just hand-code the layout,
>it ain't that hard.....[/color]

Thx but... not thx. That reminds me too much of the Petzold-era
Windows in C :-)

Cheers
Fred.
Geoff Caplan
Guest
 
Posts: n/a
#13: Jul 18 '05

re: VB-like GUI designer?


Hi

Check out VisualWx.

http://visualwx.altervista.org/

Offers all the wx widgets including sizers, and creates code for C++,
Python, Perl, Lua and Ruby. I've been playing with for a couple of
days, and so far it's looking surprisingly stable and nice to use.

There's an animated tutorial here:

http://www.trinity.unimelb.edu.au/~a..._launcher.html

------------------
Geoff Caplan
Vario Software Ltd
(+44) 121-515 1154

Robert
Guest
 
Posts: n/a
#14: Jul 18 '05

re: VB-like GUI designer?


Detlev Offenbach wrote:
[color=blue]
>
> Give "eric3" a try (http://www.die-offenbachs.de/detlev/eric3.html).
> It is a complete Python IDE using Qt-Designer for GUI development and
> Qt-Linguist for translating the GUI.
>
> Detlev[/color]

I'll second that! Very well done.

Wish I could program like that!
--
Robert - slackware

Thomas Bartkus
Guest
 
Posts: n/a
#15: Jul 18 '05

re: VB-like GUI designer?


"Fred" <nobody@nowhere.com> wrote in message
news:tnmfh0dp629i16hqrqbnnu6r6l73kt2kn6@4ax.com...[color=blue]
>
> Thx but... not thx. That reminds me too much of the Petzold-era
> Windows in C :-)
>[/color]
Gads! I still have that Petzold book.
I remember studying that stuff thinking it would take a long to for this GUI
stuff to catch on.

It didn't!
Thomas Bartkus


Nikos Kouremenos
Guest
 
Posts: n/a
#16: Jul 18 '05

re: VB-like GUI designer?


Fred wrote:[color=blue]
> Hi,
>
> I'm currently checking out Python as an alternative to VB.Net
> to moving from VB, but can't find a GUI designer that is as good as
> VB.
>
> I tried wxDesigner and wxGlade, but neither lets me move the widgets
> around. I also tried Dialogblocks, but it seems to only handle C++ or
> XRC, not Python.
>
> Is this all there is, or is there a gem I missed?
>
> Thank you
> Fred.[/color]

this is because of the way wxWidgets. If you can't get used to it, then
you can always try PyQT (which I believe you will find more close to
your designer needs). For Windows you need to buy a license though.
PyGTK also won't do it for you (same as wxWidgets style).
You can also parse the XML files that exist for every widget [XRC,
..glade, and so on]

Next time do a better 'web search'.
Good Luck,
Nikos
Tom B.
Guest
 
Posts: n/a
#17: Jul 18 '05

re: VB-like GUI designer?



"Fred" <nobody@nowhere.com> wrote in message
news:bv2fh01mq7ug2v79s737tg06iehiph9158@4ax.com...[color=blue]
> Hi,
>
> I'm currently checking out Python as an alternative to VB.Net
> to moving from VB, but can't find a GUI designer that is as good as
> VB.
>
> I tried wxDesigner and wxGlade, but neither lets me move the widgets
> around. I also tried Dialogblocks, but it seems to only handle C++ or
> XRC, not Python.
>
> Is this all there is, or is there a gem I missed?
>
> Thank you
> Fred.[/color]

wxPython has all you need, it is easy to use sizers but if your stuck on
visual design use the XML resource editor.

Tom


simo
Guest
 
Posts: n/a
#18: Jul 18 '05

re: VB-like GUI designer?


Fred <nobody@nowhere.com> wrote:
[color=blue]
> - And last, since we're on the subject of tools available to switch
> from VB... is there a good compiler so as to distribute a GUI Python
> built on either wxW or QT?
> I've seen a bunch of tools like py2exe, freeze, pyPack, Psyco,
> McMillan (RIP?), and distutils, so am a bit lost. Which would you
> recommend?[/color]

Ah, you may be stuck there!

I noticed you mentionned customers, so presume you want this to be
closed source?

Well that doesn't really exist for Python, you have to distribute the
..pyc or .pyo files, which are compiled to bytecode, but easy-ish to
disassemble to source.

py2exe is the best program for [pseudo] compiling your Python app, and
bundling all the necessary DLLs etc. together on Windows. I've used
py2exe with PyQt/wxPython sucessfully. It's what BitTorrent uses (I'm
sure you've heard of the wxPython P2P app?)

McMillan Installer is not as good as py2exe on Windows IMHO, but also
works on Linux. Same goes for cx_Freeze.

InnoSetup is an excellant installation package program that can take
the output of py2exe (or whatever) and make a Setup.exe, it's not MSI
mind you, but is free.

IMHO a *machine code* compiler is what is really holding pack Python
adoption on the desktop by a lot of companies, certainly the one I
work for cannot take the risk of having it's software decompiled to
source! Of course, for server-side stuff it's fine.

You could wait for IronPython (or MS Visual Python.NET as it will
probably become!) if you want a standalone binary.....
Fred
Guest
 
Posts: n/a
#19: Jul 18 '05

re: VB-like GUI designer?


On 9 Aug 2004 16:06:01 -0700, simoninusa2001@yahoo.co.uk (simo) wrote:[color=blue]
>py2exe is the best program for [pseudo] compiling your Python app, and
>bundling all the necessary DLLs etc. together on Windows. I've used
>py2exe with PyQt/wxPython sucessfully[/color]

OK, I'll give it a closer look then. I don't care about decompiling,
but simply to find a way to easily deploy Python + wxWidgets + our app
on bare Windows hosts.
[color=blue]
>InnoSetup is an excellant installation package program that can take
>the output of py2exe (or whatever) and make a Setup.exe, it's not MSI
>mind you, but is free[/color]

Yup, it's a nice app. I prefer to use NSIS because it has a scripting
language, though.
[color=blue]
>IMHO a *machine code* compiler is what is really holding pack Python
>adoption on the desktop by a lot of companies[/color]

I read somewhere that the very roots of Python (being a dynamic
language?) make it difficult to write a compiler that outputs machine
code. But then, it seems pretty easy to call DLLs from Python, so I'll
just write the number crunching parts in PowerBasic if Python proves
to be too slow for this kind of thing.
[color=blue]
>You could wait for IronPython (or MS Visual Python.NET as it will
>probably become!) if you want a standalone binary.....[/color]

But then, I was investigating whether there's an alternative to VB to
write GUI apps in Windows as easily and productively, so am a bit
reluctant to go the .Net way :-)

Thx a lot
Fred.
Fred
Guest
 
Posts: n/a
#20: Jul 18 '05

re: VB-like GUI designer?


On Tue, 10 Aug 2004 01:31:52 +0300, Nikos Kouremenos <nk@ebox.gr>
wrote:[color=blue]
>this is because of the way wxWidgets. If you can't get used to it, then
>you can always try PyQT (which I believe you will find more close to
>your designer needs)[/color]

No problem. I just didn't know most of the GUI tools for Python use
cross-platform widget sets like wxWidgets, so expected to just start
playing without having to learn about this additional layer.

Thx
Fred.
Roger Binns
Guest
 
Posts: n/a
#21: Jul 18 '05

re: VB-like GUI designer?


simo wrote:[color=blue]
> Fred <nobody@nowhere.com> wrote:
>
> [snip][color=green]
>> I tried wxDesigner and wxGlade, but neither lets me move the widgets
>> around.[/color]
>
> Dunno what you're smoking there man![/color]

I think what he means is that they generally force you to use sizers.
For example in wxGlade, if you drag a button out onto a new frame, it
has resize handles but you can't resize or position the button since
it all ends up inside a sizer. You can type in new size/position in
the object properties but that is insane.
[color=blue]
> Qt Designer (for use with PyQt though) or just hand-code the layout,
> it ain't that hard.....[/color]

For people who are happy with the licensing issues behind Qt, it is
certainly best of breed.

As for hand coding the layout, don't forget he has come from a VB
world :-) Using sizers and hand coding is certainly usually in the
best long term interests of many projects, but in the short term
is more time consuming and frustrating (you just want to drag the
buttons around).

Roger


Gary
Guest
 
Posts: n/a
#22: Jul 18 '05

re: VB-like GUI designer?


On Mon, 09 Aug 2004 11:53:12 -0400, Peter Hansen <peter@engcorp.com> ,
created a minor stir when he wrote:
[color=blue]
>Gary wrote:
>[color=green]
>> Boa Constructor is a diamond in the rough:
>> http://boa-constructor.sourceforge.n...8-snapshot.tgz[/color]
>
>Didn't you mean "a snake in the grass"? ;-)[/color]

Pig in a poke, snake in a sack...

No, diamond-in-the-rough is apt. If you hammer away carefully, you can
produce something of value - if not beauty.
--
Roger Binns
Guest
 
Posts: n/a
#23: Jul 18 '05

re: VB-like GUI designer?


Fred wrote:[color=blue]
> No problem. I just didn't know most of the GUI tools for Python use
> cross-platform widget sets like wxWidgets, so expected to just start
> playing without having to learn about this additional layer.[/color]

You may want to look at my dotamatic project at
http://dotamatic.sourceforge.net/

It is written in Python using the wxPython/wxWidgets toolkit.
It does drawing, clipboard and printing as well as the other
good things an application should have such as saving
configuration settings and online help.

You will also see the downloads for Windows, Linux and Mac.
End users simply see what looks like a normal setup and
a normal program. They never know or need to know that
there is Python involved.

If you are concerned with these kind of issues, you may
also find part of the presentation I gave at baypiggies
in July interesting.

http://bitpim.org/papers/baypiggies

Slides 11 thru 23 are the most appropriate but I expect
you will find all the others interesting as well :-)

Roger


Fred Pacquier
Guest
 
Posts: n/a
#24: Jul 18 '05

re: VB-like GUI designer?


Geoff Caplan <geoff@variosoft.com> said :
[color=blue]
> Check out VisualWx.
>
> http://visualwx.altervista.org/[/color]


Hey, thanks for the pointer, this one looks really nice (even if it's only
available for Windows ATM)...

Out of curiosity, how did you come across it ? This sort of topic pops up
every month or so on this group, and I'd never seen it mentioned before,
although it seems the project has been going on for a while already...

--
YAFAP : http://www.multimania.com/fredp/
Miki Tebeka
Guest
 
Posts: n/a
#25: Jul 18 '05

re: VB-like GUI designer?


Hello Fred,
[color=blue][color=green]
> >InnoSetup is an excellant installation package program that can take
> >the output of py2exe (or whatever) and make a Setup.exe, it's not MSI
> >mind you, but is free[/color]
>
> Yup, it's a nice app. I prefer to use NSIS because it has a scripting
> language, though.[/color]
Inno has a Pascal like scripting language which IMO is *way* easier than
NSIS assembly like language.

I recently switch from NSIS to Inno only because scripting was much easier.
The Inno setup script is about 60% of the NSIS one for the same project
with the same functionality.

Bye.
--
------------------------------------------------------------------------
Miki Tebeka <miki.tebeka@zoran.com>
http://tebeka.spymac.net
The only difference between children and adults is the price of the toys
Fred
Guest
 
Posts: n/a
#26: Jul 18 '05

re: VB-like GUI designer?


On Tue, 10 Aug 2004 10:23:31 +0200, "Miki Tebeka"
<miki.tebeka@zoran.com> wrote:[color=blue]
>Inno has a Pascal like scripting language which IMO is *way* easier than
>NSIS assembly like language.[/color]

Really? Was it added recently? I have to give it a shot :-)

Thx
Fred.
Fred
Guest
 
Posts: n/a
#27: Jul 18 '05

re: VB-like GUI designer?


On Mon, 9 Aug 2004 21:13:47 -0700, "Roger Binns"
<rogerb@rogerbinns.com> wrote:
(snip)

Thx, the slides are very educational :-) And if I Python provides a
high-quality grid object or makes it a snap to work with the
ComponentOne ActiveX we currently use, I'll be happy as a pig ... er
... a snake in mud.

Cheers
Fred.
Roger Binns
Guest
 
Posts: n/a
#28: Jul 18 '05

re: VB-like GUI designer?


Fred wrote:[color=blue]
> Thx, the slides are very educational :-) And if I Python provides a
> high-quality grid object or makes it a snap to work with the
> ComponentOne ActiveX we currently use, I'll be happy as a pig ... er
> .. a snake in mud.[/color]

wxPython does have a grid object that is pretty good. On Windows
wxPython also has activeX integration.

I would recommend you download and install wxPython. One of the
items it installs is a demo that shows using every single widget
and the code for doing it. That gives you a good idea of what
it all looks like and how you do the coding.

Roger


Geoff Caplan
Guest
 
Posts: n/a
#29: Jul 18 '05

re: VB-like GUI designer?


Hi folks,

FP> Geoff Caplan <geoff@variosoft.com> said :
[color=blue][color=green]
>> Check out VisualWx.[/color][/color]

<snip>

FP> Out of curiosity, how did you come across it ? This sort of topic pops up
FP> every month or so on this group, and I'd never seen it mentioned before,
FP> although it seems the project has been going on for a while already...

That's the wonder of Google!

------------------
Geoff Caplan
Vario Software Ltd
(+44) 121-515 1154

simo
Guest
 
Posts: n/a
#30: Jul 18 '05

re: VB-like GUI designer?


"Roger Binns" <rogerb@rogerbinns.com> wrote:
[color=blue]
> You will also see the downloads for Windows, Linux and Mac.
> End users simply see what looks like a normal setup and
> a normal program. They never know or need to know that
> there is Python involved.[/color]

I noticed you have RPMs for Linux - so what do they include - a
complete wxWidgets/GTK+/Python distribution, plus your files?
Roger Binns
Guest
 
Posts: n/a
#31: Jul 18 '05

re: VB-like GUI designer?


simo wrote:[color=blue]
> I noticed you have RPMs for Linux - so what do they include - a
> complete wxWidgets/GTK+/Python distribution, plus your files?[/color]

$ rpm -qpl dotamatic-0.2-0.i386.rpm
/usr/bin/dotamatic
/usr/lib/dotamatic-0.2
/usr/lib/dotamatic-0.2/_localemodule.so
/usr/lib/dotamatic-0.2/dotamatic
/usr/lib/dotamatic-0.2/dotamatic.css
/usr/lib/dotamatic-0.2/libwx_gtkd-2.4.so
/usr/lib/dotamatic-0.2/mathmodule.so
/usr/lib/dotamatic-0.2/pcre.so
/usr/lib/dotamatic-0.2/pwdmodule.so
/usr/lib/dotamatic-0.2/resources
/usr/lib/dotamatic-0.2/resources/dotamatic.htb
/usr/lib/dotamatic-0.2/resources/standard.jpg
/usr/lib/dotamatic-0.2/strop.so
/usr/lib/dotamatic-0.2/timemodule.so
/usr/lib/dotamatic-0.2/wxPython.htmlc.so
/usr/lib/dotamatic-0.2/wxPython.wxc.so

The file in /usr/bin is a shell script that just execs the dotamatic
binary in /usr/lib. The dotmatic executable is actually the Python
interpretter with an archive containing the bytecode appended.
Only the Python and wxPython modules used are present.

If you have a look at my BitPim project file you can see something
that does a lot more, and consequently has way more modules
included.

You can compare the above directory to the one installed on
Windows and will find they are remarkably similar. The Mac
one is also similar but has some underlying differences.

Roger



simo
Guest
 
Posts: n/a
#32: Jul 18 '05

re: VB-like GUI designer?


"Roger Binns" <rogerb@rogerbinns.com> wrote in message news:<3hpou1-09i.ln1@home.rogerbinns.com>...[color=blue]
> simo wrote:[color=green]
> > I noticed you have RPMs for Linux - so what do they include - a
> > complete wxWidgets/GTK+/Python distribution, plus your files?[/color]
>
> $ rpm -qpl dotamatic-0.2-0.i386.rpm
> /usr/bin/dotamatic
> /usr/lib/dotamatic-0.2
> /usr/lib/dotamatic-0.2/_localemodule.so
> /usr/lib/dotamatic-0.2/dotamatic
> /usr/lib/dotamatic-0.2/dotamatic.css
> /usr/lib/dotamatic-0.2/libwx_gtkd-2.4.so
> /usr/lib/dotamatic-0.2/mathmodule.so
> /usr/lib/dotamatic-0.2/pcre.so
> /usr/lib/dotamatic-0.2/pwdmodule.so
> /usr/lib/dotamatic-0.2/resources
> /usr/lib/dotamatic-0.2/resources/dotamatic.htb
> /usr/lib/dotamatic-0.2/resources/standard.jpg
> /usr/lib/dotamatic-0.2/strop.so
> /usr/lib/dotamatic-0.2/timemodule.so
> /usr/lib/dotamatic-0.2/wxPython.htmlc.so
> /usr/lib/dotamatic-0.2/wxPython.wxc.so
>
> The file in /usr/bin is a shell script that just execs the dotamatic
> binary in /usr/lib. The dotmatic executable is actually the Python
> interpretter with an archive containing the bytecode appended.
> Only the Python and wxPython modules used are present.[/color]

So how are you generating this interpreter/bytecode archive? It
basically sounds like the kind of thing py2exe does, but you've made
an object file or something. How did you calculate the dependencies?

I'm heading off to your site to see if you have the build environment
in with the source ;o)
Roger Binns
Guest
 
Posts: n/a
#33: Jul 18 '05

re: VB-like GUI designer?


simo wrote:[color=blue]
> So how are you generating this interpreter/bytecode archive? It
> basically sounds like the kind of thing py2exe does, but you've made
> an object file or something. How did you calculate the dependencies?[/color]

It is all discussed in the presentation at
http://bitpim.org/papers/baypiggies

Slides 18 thru 23. On Windows I use py2exe, Linux I use cxFreeze
and Mac uses BundleBuilder.
[color=blue]
> I'm heading off to your site to see if you have the build environment
> in with the source ;o)[/color]

It is. The simplest one is in the dotamatic source. Look for a file
named makedist.py. A more complicated variant of makedist.py is in
the BitPim source.

http://cvs.sourceforge.net/viewcvs.py/dotamatic
http://cvs.sourceforge.net/viewcvs.py/bitpim

(I can't give longer links as SF CVS stuff is down at the moment).

Roger


simo
Guest
 
Posts: n/a
#34: Jul 18 '05

re: VB-like GUI designer?


Replying to my own post to Roger Binns:
[color=blue][color=green][color=darkred]
> > > I noticed you have RPMs for Linux - so what do they include - a
> > > complete wxWidgets/GTK+/Python distribution, plus your files?[/color][/color][/color]
[color=blue][color=green]
> > The file in /usr/bin is a shell script that just execs the dotamatic
> > binary in /usr/lib. The dotmatic executable is actually the Python
> > interpretter with an archive containing the bytecode appended.
> > Only the Python and wxPython modules used are present.[/color][/color]

It seems you're using cx_Freeze, well I've just got 3.0b2 working
under Windows, but I seem to recall I could never get 2.2 to work
under Linux, time to try again I guess.

It doesn't seem quite as nice as py2exe under Windows - doesn't do
resource editting, so you still need to include a manifest file and
link the .ico to the Desktop shortcut etc; but if it will work better
than McMillan Installer under Linux, I shall be very pleased!

Then I have to figure out how to make KDE/Gnome Desktop shortcuts,
make RPMs, oh and finish my program! ;o)
simo
Guest
 
Posts: n/a
#35: Jul 18 '05

re: VB-like GUI designer?


"Roger Binns" <rogerb@rogerbinns.com> wrote:
[color=blue][color=green]
> > So how are you generating this interpreter/bytecode archive? It
> > basically sounds like the kind of thing py2exe does, but you've made
> > an object file or something. How did you calculate the dependencies?[/color][/color]
[color=blue]
> Slides 18 thru 23. On Windows I use py2exe, Linux I use cxFreeze
> and Mac uses BundleBuilder.[/color]

Thanks for the help, I've actually managed to get both cx_Freeze and
MM Installer working!

I think a lot of it has to do with the quality of the build
environment - my RedHat9 box has a horribly hacked-together Python 2.3
distro with bits of RPMs, some compiled stuff and some dodgey
symlinking, but the SUSE box has a proper apt-get'ed Python. I can
build on the SUSE box and run on the RedHat box!

I've written a [simpler than yours] shell script to freeze and then
tar-up the distro, then I might try Solaris!

I've still got a few things to iron out - like bluecurve.so warnings
on RedHat, and linux-gate.so warnings on SUSE, then I've gotta go read
your presentation before learning about RPMs!
Closed Thread