Problems running application created with GUI2Exe 0.3

Hi Andrea,

I switched to 0.3 GUI2Exe (on cygwin on Win XP):

I compiled my project and received the following confirmation:

Outlook.jpg

But when I choose “Yes”, I get:

Outlook.jpg

If I try to run the resulting Python script binary from a DOS (cmd) window, it runs fine.

Could you help me resolve this issue ?

Thanks,

Ron.

P.S.: that’s the GUI2Exe I use:
Outlook.jpg

Barak, Ron wrote:

Hi Andrea,
I switched to 0.3 GUI2Exe (on cygwin on Win XP):
I compiled my project and received the following confirmation:

Thanks,
Ron.

I haven't had this issue with GUI2Exe 0.3 on Windows XP. I wonder if Cygwin is at fault here...I think I have seen this happen before, but I think all I had to do was recompile my application and it worked fine. Are you just doing a "test run"?

- Mike

Hi Mike,
I'm very sorry to have missed your reply until now (found it during an unrelated search of the web).
As to your question: I'm not sure what you mean by "test run". I compile a full fledged application, and it's a minor inconvenience not being able to run the compiled exe directly from GUI2exe.
Bye,
Ron.

···

-----Original Message-----
From: Mike Driscoll [mailto:mike@pythonlibrary.org]
Sent: Friday, April 17, 2009 16:57
To: wxpython-users@lists.wxwidgets.org
Subject: Re: [wxpython-users] Problems running application
created with GUI2Exe 0.3

Barak, Ron wrote:
> Hi Andrea,
>
> I switched to 0.3 GUI2Exe (on cygwin on Win XP):
>
> I compiled my project and received the following confirmation:
>
>
> But when I choose "Yes", I get:
>
>
> If I try to run the resulting Python script binary from a DOS (cmd)
> window, _it runs fine_.
>
>
> Could you help me resolve this issue ?
>
> Thanks,
> Ron.
>
>

I haven't had this issue with GUI2Exe 0.3 on Windows XP. I
wonder if Cygwin is at fault here...I think I have seen this
happen before, but I think all I had to do was recompile my
application and it worked fine.
Are you just doing a "test run"?

- Mike

Hi Ron,

2009/6/22 Barak, Ron:

Hi Mike,
I'm very sorry to have missed your reply until now (found it during an unrelated search of the web).
As to your question: I'm not sure what you mean by "test run". I compile a full fledged application, and it's a minor inconvenience not being able to run the compiled exe directly from GUI2exe.

I think I will need a way to reproduce the problem, as I have never
seen this behaviour in GUI2Exe before. Can you share your project? Are
you sure an executable is actually created at the end of the
compilation process?

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

Ron,

···

On Jun 22, 9:31 am, "Barak, Ron" <Ron.Ba...@lsi.com> wrote:

Hi Mike,
I'm very sorry to have missed your reply until now (found it during an unrelated search of the web).
As to your question: I'm not sure what you mean by "test run". I compile a full fledged application, and it's a minor inconvenience not being able to run the compiled exe directly from GUI2exe.
Bye,
Ron.

Oops...looks like Andrea's terminology was "Dry Run", not "test run".
Still, the meaning is equivalent.

See Andrea's answer too.

- Mike

Hi Andrea,

For me, it occurs with every Python script, so I’m attaching one such script the even though it compiles correctly, and can be run from the destination directory, I get the following error:

So, I think bottom line is that this behaviour is due to some global GUI2Exe configuration/interaction on my system, and is not linked to any particular Python script.

Bye,
Ron.

P.S.: The created binary is 4 MB in size, do you wish me to send it to you ?

notebook_example_01.py (1.51 KB)

···

-----Original Message-----
From: Andrea Gavana - andrea.gavana@gmail.com
[mailto:+wxpython-users+comverse+0d03d9dce2.andrea.gavana#gmai
l.com@spamgourmet.com]
Sent: Monday, June 22, 2009 19:02
To: wxPython-users@googlegroups.com
Subject: [wxPython-users] Re: Problems running application
created with (wxpython-users: andrea.gavana@gmail.com
exclusive) GUI2Exe 0.3

Hi Ron,

2009/6/22 Barak, Ron:

Hi Mike,
I’m very sorry to have missed your reply until now (found
it during an unrelated search of the web).
As to your question: I’m not sure what you mean by “test
run”. I compile a full fledged application, and it’s a minor
inconvenience not being able to run the compiled exe directly
from GUI2exe.

I think I will need a way to reproduce the problem, as I have
never seen this behaviour in GUI2Exe before. Can you share
your project? Are you sure an executable is actually created
at the end of the compilation process?

Andrea.

“Imagination Is The Only Weapon In The War Against Reality.”
http://xoomer.alice.it/infinity77/
http://thedoomedcity.blogspot.com/

Hi,

I’m trying to display a multiline static text widget on a scrolled window and I cannot seem to get the size to be right. My text always wraps and the last few lines are not shown. This should be really straightforward, but I don’t see what I’m missing.

Here’s what I have:

    text = "Instructions:\n\t* Double-click an entry to set the edit fields\n"  + \
           "\t* Make any changes in the edit fields\n"  + \
           "\t* Select the target mapping and click 'Update Selected'\n"  + \
           "\t* Or, click 'Add As New' to make a new mapping\n"  + \
           "\t* The SHA-1 and Millview version from a mill can be read by\n"  + \
           "\t\tentering the IP address and clicking 'Revision From Mill'"
    t = wx.StaticText(win, -1, text, pos=(20,570), size=(600,120))
    t.SetForegroundColour(self.data["APP_TEXT_COLOR"])
    t.SetBackgroundColour(self.data["APP_BACK_COLOR"])
    t.SetFont(self.data["APP_FONT_10"])

where win is a wx.ScrolledWindow. No matter what I set the size to, I get the same thing. I’ve tried adding a panel, putting the text on the panel and then using a GridSizer or BoxSizer but in that case I can get the text to show completely but it is not positioned on the ScrolledWindow as I want it (it gets put in the upper left corner). This is confusing, too, since I have a ButtonPanel with a GridSizer already on the screen and it is positioned as I want it. Using Wrap(-1) had no effect, either.

This should be simpler. I must be missing something obvious (?)

Ron

···

NEW mobile Hotmail. Optimized for YOUR phone. Click here.

Ron Kneusel wrote:

Hi,

I'm trying to display a multiline static text widget on a scrolled window and I cannot seem to get the size to be right. My text always wraps and the last few lines are not shown. This should be really straightforward, but I don't see what I'm missing.

Here's what I have:

        text = "Instructions:\n\t* Double-click an entry to set the edit fields\n" + \
               "\t* Make any changes in the edit fields\n" + \
               "\t* Select the target mapping and click 'Update Selected'\n" + \
               "\t* Or, click 'Add As New' to make a new mapping\n" + \
               "\t* The SHA-1 and Millview version from a mill can be read by\n" + \
               "\t\tentering the IP address and clicking 'Revision From Mill'"
        t = wx.StaticText(win, -1, text, pos=(20,570), size=(600,120))

By setting the size in the constructor you are also setting the min size of the widget, which will take precedence when calculating layout with a sizer, and the widget will not expand to accommodate the actual size of the text. Try leaving out the size (and position is not really needed either) and let the sizer deal with setting an appropriate size for the widget.

···

--
Robin Dunn
Software Craftsman