ANN: Airs v0.9d released

Peter Damoc wrote:

I've ran into this problem a long time ago but... I don't remember the reasons. I just remembered the solution. Redirection of the output to a file for packaged GUIs.

here is what I could find at a quick search:

Py2ExeSubprocessInteractions - py2exe.org

Peter.

Thanks a lot Peter, I will look into this..

···

--
ak
Tobu | http://tobu.lightbird.net/ | Freeform DB / Tagger / PIM
Python-by-Example | http://pbe.lightbird.net/ | Guide to LibRef

Robin Dunn wrote:

AK wrote:

Peter Damoc wrote:

You intuition is very good!
The quickest workaround is to use the logging module.
It already implemented all that you need complete with custom level reporting and custom targets for reports.

Do you know the reason behind this problem? I'm curious because it's an odd thing to do
where on output to stdout when there's no stdout, things would just stop working.. is
stdout mapped to something else? I'd just expect it to silently disappear when stdout
is not present.. but I'm sure there's a good reason for it.

There is a stdout for X apps started from the GUI, it is inherited from the parent process just like when you start from a terminal session. In this case however the parent process is probably (part of) the desktop environment, which was started by the X server when it initialized itself. So the stdout/stderr are probably either the system console that started X, or a file that X's output was redirected to when you logged in, such as ~/.xsession*

Thanks for the answers! In this case I ran into it in Windows and it's a python
bug according to Py2ExeSubprocessInteractions - py2exe.org
(it does not apply just to py2exe but when you run .pyw without any terminal),
and the fix is to redirect stdout and stderr.

···

--
ak
Tobu | http://tobu.lightbird.net/ | Freeform DB / Tagger / PIM
Python-by-Example | http://pbe.lightbird.net/ | Guide to LibRef

AK wrote:

I don't have any Macs, so I have to ask if anyone was able to do a workaround for this issue..
There is a very nice module 'TextCtrlAutoComplete' that does a drop down, lets you type
in characters and highlights matches. Alas it uses PopupWindow() which is not implemented
on Macs. I got a report that a Mac user got this error:

So, is there an easy fix for this?

It's a little hacky but in 2.8 you can use a wx.Frame with a wx.POPUP_WINDOW style (only on Mac) and you will get something that behaves a little like PopupWindow.

2.9 will have a true implementation of wx.PopupWindow and wx.TransientPopupWindow.

In general, is it practical to target Macs with wxPython without
having access to a Mac? It is kind of based on unix and I do have Linux running
so it might be easier than if I only had windows, I'm not sure.

There are still enough differences, especially with the UI and other environment specific things (like app bundles, where config files should be stored, etc.) that you'll be better off if you at least do some testing on Mac if you want to be able to support that platform.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Hello,

roee shlomo wrote:

I've changed from TextCtrlAutoComplete to simple wxComboBox for mac

support, but I'm not sure it will suit you.

Yep unfortunately AutoComplete is very important for me..

A few months ago, Tim Ansell posted a FakePopupWindow to this list,
and after rediscovering it a few days ago I hacked around with
TextCtrlAutoComplete to try to get it to work on the Mac. It almost
works, but there's a focus problem I can't seem to fix.

http://trac.flipturn.org/browser/trunk/peppy/lib/textctrl_autocomplete.py

After typing a character that matches an item in the list, focus is
placed on the list instead of staying on the text control like it does
on the other platforms. Any help from Mac folks would be appreciated.

I have some code in Editra (ed_cmdbar.py) that might help, there is a class called PopupList in that file that I use for implementing the tab completion in Editra's command buffer for commands like 'cd'. You might also want to look at the cpp implementation for the AutoComp popup control for the StyledTextCtrl that has a class for working around the lack of a PopupWindow on wxMac, IIRC its in PlatWX.cpp.

Regards,

Cody Precord

···

On Apr 14, 2008, at 11:38 PM, Rob McMullen wrote:

On Mon, Apr 14, 2008 at 3:42 PM, AK <andrei.avk@gmail.com> wrote:

I looked at PopupList and PopupWinList because it seemed that you
found a way around the problem, but wasn't able to see an easy way to
decouple the tab completion part out of CommandExecuter.

Do you happen to have a simple demo that operates on some passed-in
list of sample text strings?

Thanks,

Rob

···

On Mon, Apr 14, 2008 at 9:55 PM, Cody Precord <codyprecord@gmail.com> wrote:

I have some code in Editra (ed_cmdbar.py) that might help, there is a class
called PopupList in that file that I use for implementing the tab completion
in Editra's command buffer for commands like 'cd'.

Debian is switching at this very moment to python2.5 So probably in
one month the transformation will be complete. Ubuntu already uses
python2.5 by default. Do you plan to add any mindmap or dot graphic
functionality?
Stani

···

On Mon, Apr 14, 2008 at 4:41 PM, Martin Schmitz <martin-schmitz@web.de> wrote:

Am 14.04.08 schrieb "Peter Damoc" <pdamoc@gmail.com>:

> as for 2.5... it has been stable since 2006 and most big
> distributions are on a 6 months schedule.

I only know one of the major distributions with a fixed released cycle.
Typically a linux distro is ready for release when it's ready.

> I don't use Linux but I think that with the exceptions of slow release
> distros they all should have 2.5

No, many don't. Debian and Slackware for example still use python 2.4.

--

I forgot to add that wxPython 2.8 (python-wxgtk2.8) is in the Ubuntu
repositories, but not in the Debian repositories. (Well it has been
recently added to Debian experimental, but that is not production
ready.)
Stani

···

On Tue, Apr 15, 2008 at 1:51 PM, Stani <spe.stani.be@gmail.com> wrote:

Debian is switching at this very moment to python2.5 So probably in
one month the transformation will be complete. Ubuntu already uses
python2.5 by default. Do you plan to add any mindmap or dot graphic
functionality?
Stani

--

Stani wrote:

···

On Mon, Apr 14, 2008 at 4:41 PM, Martin Schmitz <martin-schmitz@web.de> wrote:
  

Am 14.04.08 schrieb "Peter Damoc" <pdamoc@gmail.com>:

as for 2.5... it has been stable since 2006 and most big
      

> distributions are on a 6 months schedule.

I only know one of the major distributions with a fixed released cycle.
Typically a linux distro is ready for release when it's ready.

> I don't use Linux but I think that with the exceptions of slow release
> distros they all should have 2.5

No, many don't. Debian and Slackware for example still use python 2.4.
    

Debian is switching at this very moment to python2.5 So probably in
one month the transformation will be complete. Ubuntu already uses
python2.5 by default. Do you plan to add any mindmap or dot graphic
functionality?
Stani
  

I haven't thought of that yet, how would dot graphic thing work?

--
ak
Tobu | http://tobu.lightbird.net/ | Freeform DB / Tagger / PIM
Python-by-Example | http://pbe.lightbird.net/ | Guide to LibRef

Hello,

I'm looking for the official list of wxWidgets supported by wxPython as
well as a list of custom wxPython widgets contributed by the community.

Any suggestions on where to look?

The docs should have all (most) of them

http://wxpython.org/docs/api/

···

On Apr 16, 2008, at 3:25 PM, python@bdurham.com wrote:

Thanks,
Malcolm
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

Kevin Ollivier wrote:

Hi Roee,

I've changed from TextCtrlAutoComplete to simple wxComboBox for mac support, but I'm not sure it will suit you.
Looking at the wxWidgets Changelog <http://wx.ibaku.net/changelog/?d=KO&gt;, it seems like Kevin Ollivier recently implemented wxPopupWindow for mac. So I assume it will be included in the next wx release.

While I'd love to claim credit for this, it was actually Stefan Csomor who did all of the work. All I did was backport the code to my own 2.8 branch. I can't backport it to the official 2.8 branch because, unfortunately, it breaks ABI compatibility. Of course, maybe people could nudge Robin to consider moving over to using my branch ;-), which is basically going to be 2.8 + some stuff like this that can't go into the official 2.8 release.

I've thought about it, but it wouldn't be able to be done for the Linux packages where ABI needs to be maintained. So then we could end up with different versions between *nix and MSW/Mac, which could lead to a new set of problems.

···

On Apr 14, 2008, at 1:35 PM, roee shlomo wrote:

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!