ANN: Airs v0.9d released

Hi Jorgen,

> There are no errors of such kind, right?

The application appears to exit after the updating message.
In other words, the application starts, quickly displays the
updating message, and then exits.

I checked my Task Manager and there are no airs programs or
processes running in the background.

Same for me, I'm sorry to say. A dialog with some text flashes, then
nothing.

David

Hmm thanks, looking into it, I will have to prepare a clean windows XP
virtual PC then ..

Could you see if there is an error.log in the application dir, and if
so post it to me? It would help me tremendously!

Regards,
- Jorgen

···

On Sun, Apr 13, 2008 at 7:09 PM, David Woods <dwoods@wcer.wisc.edu> wrote:

> Hi Jorgen,
>
> > There are no errors of such kind, right?
>
> The application appears to exit after the updating message.
> In other words, the application starts, quickly displays the
> updating message, and then exits.
>
> I checked my Task Manager and there are no airs programs or
> processes running in the background.

Same for me, I'm sorry to say. A dialog with some text flashes, then
nothing.

David

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

Malcolm,

Did you try the latest download? I found the problem. I forgot to
create the directory in the Documents And Settings\Application Data\.
The code that created the dir got lost by moving the piece of code to
a different location in my app.

Regards,
- Jorgen

···

On Sun, Apr 13, 2008 at 11:05 PM, Malcolm Greene <python@bdurham.com> wrote:

Jorgen,

No error logs on my side.

Regards,
Malcolm

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

Tobu 0.5.0 is now available.

Tobu is something between a freeform information organizer and a database.

Changes since last version were:

Added multiple undo/redo, toolbar icon for list recent; Fixed loading a previously selected item from listing, disabled closing of last remaining tab, fixed panes disappearing when dragged all the way down or up, fixed removing of favorites, changed last used tag to pop to the top of recently used tags, fixed tab key deleting tags when they are selected, set exact match in filter dropdown to highlight ahead of inexact matches, fixed replacing file name when dragged and dropped instead of appending to old filename, removed 'new copy' icon from toolbar, fixed gvim not saving changes in linux when set as external editor - see note in tutorial, fixed saved views / saved templates interfering with each other, automatic windows installer was added.

Tobu's homepage is here:

http://tobu.lightbird.net

Hi Malcolm,

Airs fails to launch due to unicode issues.

storm.databases.sqlite does not accept unicode.

To fix this problem change airs/data/db.py line 55 to:

database = create_database(“sqlite:” + db_filename.encode(‘utf-8’))

Roee.

···

On 14/04/2008, Malcolm Greene python@bdurham.com wrote:

Hi Jorgen,

Tried the latest update and the application works! I haven’t configured
the app yet but look forward to doing so.

Two comments on exploring the user interface:

  1. Frame resizing behavior:

a. Its possible to resize the main frame too small and have the controls
overlap one another in an ugly fashion. Can you set min horizontal and

vertical dimensions for the main frame to prevent this behavior?

b. The Add/Edit Series dialog can be resized horizontally (good!) and
has a min width (good!). This dialog can also be vertically resized
which is just ugly. Can you prevent vertical resizing?

  1. The close button (X) on the status message panel (directly above
    “Show only unprocessed episodes” checkbox) does not appear to work.

Thanks for sharing your work with the community!

Regards,

Malcolm

----- Original message -----
From: “Jorgen Bodde” jorgen.maillist@gmail.com
To: wxpython-users@lists.wxwidgets.org

Date: Mon, 14 Apr 2008 00:06:53 +0200
Subject: Re: [wxpython-users] ANN: Airs v0.9d released

Malcolm,

Did you try the latest download? I found the problem. I forgot to
create the directory in the Documents And Settings\Application Data.

The code that created the dir got lost by moving the piece of code to
a different location in my app.

Regards,

  • Jorgen

On Sun, Apr 13, 2008 at 11:05 PM, Malcolm Greene python@bdurham.com > > wrote:

Jorgen,

No error logs on my side.

Regards,
Malcolm


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

Sorry, should have addressed Jorgen, not Malcolm :slight_smile:

···

On 14/04/2008, roee shlomo roee88@gmail.com wrote:

Hi Malcolm,

Airs fails to launch due to unicode issues.

storm.databases.sqlite does not accept unicode.

To fix this problem change airs/data/db.py line 55 to:

database = create_database(“sqlite:” + db_filename.encode(‘utf-8’))

Roee.

On 14/04/2008, Malcolm Greene python@bdurham.com wrote:

Hi Jorgen,

Tried the latest update and the application works! I haven’t configured
the app yet but look forward to doing so.

Two comments on exploring the user interface:

  1. Frame resizing behavior:

a. Its possible to resize the main frame too small and have the controls
overlap one another in an ugly fashion. Can you set min horizontal and

vertical dimensions for the main frame to prevent this behavior?

b. The Add/Edit Series dialog can be resized horizontally (good!) and
has a min width (good!). This dialog can also be vertically resized
which is just ugly. Can you prevent vertical resizing?

  1. The close button (X) on the status message panel (directly above
    “Show only unprocessed episodes” checkbox) does not appear to work.

Thanks for sharing your work with the community!

Regards,

Malcolm

----- Original message -----
From: “Jorgen Bodde” jorgen.maillist@gmail.com

To: wxpython-users@lists.wxwidgets.org
Date: Mon, 14 Apr 2008 00:06:53 +0200
Subject: Re: [wxpython-users] ANN: Airs v0.9d released

Malcolm,

Did you try the latest download? I found the problem. I forgot to
create the directory in the Documents And Settings\Application Data.
The code that created the dir got lost by moving the piece of code to

a different location in my app.

Regards,

  • Jorgen

On Sun, Apr 13, 2008 at 11:05 PM, Malcolm Greene python@bdurham.com > > > > wrote:

Jorgen,

No error logs on my side.

Regards,
Malcolm


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


wxpython-users mailing list
wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users

Hello, I got a traceback:

I got a traceback:
C:\temp\tobu-0.5.0>python tobu.pyw
Traceback (most recent call last):
  File "tobu.pyw", line 2674, in ?
    app = MyApp(0)
  File "C:\Python24\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7857
, in __init__
    wx.App.__init__(self, redirect, filename, useBestVisual, clearSigInt)
  File "C:\Python24\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7757
, in __init__
    self._BootstrapApp()
  File "C:\Python24\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7354
, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "tobu.pyw", line 2662, in OnInit
    frame = MyFrame()
  File "tobu.pyw", line 729, in __init__
    wx.BITMAP_TYPE_PNG).ConvertToBitmap(), "List Recent Items",
  File "C:\Python24\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 3270
, in ConvertToBitmap
    return _core_.Image_ConvertToBitmap(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "image.Ok()" failed at ..\..\src\msw\bi
tmap.cpp(799) in wxBitmap::CreateFromImage(): invalid image

···

On Mon, 14 Apr 2008 00:32:24 -0400, AK <andrei.avk@gmail.com> wrote:

Tobu 0.5.0 is now available.
[...]
Tobu's homepage is here:

http://tobu.lightbird.net

--

Franz Steinhaeusler

the package is missing an icon (recent.png)
just copy any of the icons to recent.png and you’ll be able to play with it.

The program idea is great. I have been thinking about something similar for a long long time.

The code needs a lot of cleaning up but most of my code does too. :slight_smile:

Peter

···

On Mon, Apr 14, 2008 at 9:52 AM, Franz Steinhaeusler franz.steinhaeusler@gmx.at wrote:

On Mon, 14 Apr 2008 00:32:24 -0400, AK andrei.avk@gmail.com wrote:

Tobu 0.5.0 is now available.

[…]

Tobu’s homepage is here:

http://tobu.lightbird.net

Hello, I got a traceback:

I got a traceback:

C:\temp\tobu-0.5.0>python tobu.pyw

Traceback (most recent call last):

File “tobu.pyw”, line 2674, in ?

app = MyApp(0)

File “C:\Python24\lib\site-packages\wx-2.8-msw-unicode\wx_core.py”, line 7857

, in init

wx.App.__init__(self, redirect, filename, useBestVisual, clearSigInt)

File “C:\Python24\lib\site-packages\wx-2.8-msw-unicode\wx_core.py”, line 7757

, in init

self._BootstrapApp()

File “C:\Python24\lib\site-packages\wx-2.8-msw-unicode\wx_core.py”, line 7354

, in _BootstrapApp

return _core_.PyApp__BootstrapApp(*args, **kwargs)

File “tobu.pyw”, line 2662, in OnInit

frame = MyFrame()

File “tobu.pyw”, line 729, in init

wx.BITMAP_TYPE_PNG).ConvertToBitmap(), "List Recent Items",

File “C:\Python24\lib\site-packages\wx-2.8-msw-unicode\wx_core.py”, line 3270

, in ConvertToBitmap

return _core_.Image_ConvertToBitmap(*args, **kwargs)

wx._core.PyAssertionError: C++ assertion “image.Ok()” failed at …..\src\msw\bi

tmap.cpp(799) in wxBitmap::CreateFromImage(): invalid image

Franz Steinhaeusler


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


There is NO FATE, we are the creators.

Peter Damoc wrote:

the package is missing an icon (recent.png)
just copy any of the icons to recent.png and you'll be able to play with it.

Hi Peter,

That's exactly right, forgot I had different piece of code adding icons to source
tarball vs. the py2exe dir :-(. Thanks for spotting it! I should really have
at least tried to run it.

The program idea is great. I have been thinking about something similar for a long long time.

Thanks a ton - I like it too and use it daily now. I was afraid that it might seem like a
good idea yet would be too awkward in practice, but so far it's great, and it will only
get better when database grows to thousands of items..

The code needs a lot of cleaning up but most of my code does too. :slight_smile:

That is an understatement, the code is really ungodly.. cleaning it up is on the long todo list!
In the meantime if anyone is thinking of working with it, I'm using a quick and dirty way
to work with the code by having separate files that list all functions and classes, group them
by topic and include docstrings, so if that might be helpful I can post those too..

···

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

Franz Steinhaeusler wrote:

···

On Mon, 14 Apr 2008 00:32:24 -0400, AK <andrei.avk@gmail.com> wrote:

Tobu 0.5.0 is now available.
[...]
Tobu's homepage is here:

http://tobu.lightbird.net
    
Hello, I got a traceback:

I got a traceback:
C:\temp\tobu-0.5.0>python tobu.pyw
Traceback (most recent call last):
  File "tobu.pyw", line 2674, in ?
    app = MyApp(0)
  File "C:\Python24\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7857
, in __init__
    wx.App.__init__(self, redirect, filename, useBestVisual, clearSigInt)
  File "C:\Python24\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7757
, in __init__
    self._BootstrapApp()
  File "C:\Python24\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7354
, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "tobu.pyw", line 2662, in OnInit
    frame = MyFrame()
  File "tobu.pyw", line 729, in __init__
    wx.BITMAP_TYPE_PNG).ConvertToBitmap(), "List Recent Items",
  File "C:\Python24\lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 3270
, in ConvertToBitmap
    return _core_.Image_ConvertToBitmap(*args, **kwargs)
wx._core.PyAssertionError: C++ assertion "image.Ok()" failed at ..\..\src\msw\bi
tmap.cpp(799) in wxBitmap::CreateFromImage(): invalid image

If anyone else ran into this, that was indeed due to a missing recent.png as Peter pointed
out, I now included the recent.png in the tarball, you can get it from
http://tobu.lightbird.net/download.html

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

Hi.. in some examples I saw ids of menu items being set at the top of program like this:
ID_NEW = 101
ID_EXIT = 102
...

Later on in the program, for some items that are not part of menus, the id would be
assigned automatically, with wx.NewId(). I ran into some problem with this. I had
a toolbar with a bunch of buttons. All of them worked fine except for one that was
supposed to create a new copy of an item. That button used an id assigned auto-
matically, and it was the last of them to do that (i.e. the buttons after it assigned
ids manually, which is something I overlooked when I was debugging this problem).

Also note that the first manual id was, at the top of the program, the ID_EXIT:

ID_EXIT = 103

What would happen is that pushing that 'new copy' button would run the action
bound to ID_EXIT. So, wx.NewId() would assign id = 103 even though it
was already bound to a menu item above it.

What's the best way to avoid this? Currently, in the app I distributed I have
manually assigned ids after that button. Is it possible that on some systems
this behaviour would work differently and NewId() would assign a different
id that'd interfere with manual ids? I currently tested all other icons and menu
items and they work properly.

In the development version I assigned all menu item ids on top to start at
1100 instead of 100, but that doesn't seem like a generally nice solution.

Is there some way to make linux version look nicer? Is there a general mechanism similar
to using manifest files on windows? Probably the main issue is that widgets are not
surrounded with a thin blue line. I know that linux enforces theme so you can't have
rounded buttons if theme has blocky buttons.. But a thin blue line would be nice. Some
widgets don't have any border at all.

Hi Andrei,

Hi.. in some examples I saw ids of menu items being set at the top of
program like this:
ID_NEW = 101
ID_EXIT = 102
...

Later on in the program, for some items that are not part of menus, the id
would be
assigned automatically, with wx.NewId(). I ran into some problem with this.
I had
a toolbar with a bunch of buttons. All of them worked fine except for one
that was
supposed to create a new copy of an item. That button used an id assigned
auto-
matically, and it was the last of them to do that (i.e. the buttons after it
assigned
ids manually, which is something I overlooked when I was debugging this
problem).

Also note that the first manual id was, at the top of the program, the
ID_EXIT:

ID_EXIT = 103

What would happen is that pushing that 'new copy' button would run the
action
bound to ID_EXIT. So, wx.NewId() would assign id = 103 even though it
was already bound to a menu item above it.

What's the best way to avoid this? Currently, in the app I distributed I
have
manually assigned ids after that button. Is it possible that on some systems
this behaviour would work differently and NewId() would assign a different
id that'd interfere with manual ids? I currently tested all other icons and
menu
items and they work properly.

In the development version I assigned all menu item ids on top to start at
1100 instead of 100, but that doesn't seem like a generally nice solution.

If you really need to assign ids, you might want to do something like this:

ID_Start = wx.ID_HIGHEST + 1

And Then:

button1 = wx.Button(self, ID_START+1, "Hello")
button2 = wx.Button(self, ID_START+2, "World")

And so on. You can use wx.ID_HIGHEST to determine the number above
which it is safe to define your own identifiers.

HTH.

Andrea.

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

···

On Mon, Apr 14, 2008 at 12:45 PM, AK wrote:

Jorgen,

More cosmetic feedback: Under Windows XP Professional SP2 your
application shows its Airs specific application icon:

1. In the taskbar (good!)
2. In the applications title bar (good!)

But shows a generic Windows icon vs. your Airs application icon when you
hold down the Alt+Tab key to switch applications in Windows.

I'm not sure why the Alt+Tab icon is displayed differently. If you find
a fix (I'm new to Python and curious myself) would you share it with the
rest of us.

Thanks!
Malcolm

Peter Damoc wrote:

    Peter Damoc wrote:

        The code needs a lot of cleaning up but most of my code does
        too. :slight_smile:

    That is an understatement, the code is really ungodly.. cleaning
    it up is on the long todo list!
    In the meantime if anyone is thinking of working with it, I'm
    using a quick and dirty way
    to work with the code by having separate files that list all
    functions and classes, group them
    by topic and include docstrings, so if that might be helpful I can
    post those too..

I have 2 small questions regarding design decisions.

1. Why don't you base your code on python 2.5 (you'll have sqlite3 included)
2. Why don't you use the logging module

I didn't know that sqlite3 was included there. It does work in 2.5, so it seems
like the only problem is that I list more requirements than needed. Are there
still distributions around that don't have 2.5 in their 'stable' branch? I don't
mean really tiny distributions, but the likes of ubuntu, debian, suse, RH, etc.
On the second point, I didn't use that module before so I didn't even think
about it. I started with 'print' statement then went to a small 2-line function
then added to it when I needed to so it sort of grown rather than being
designed.

That's something I wanted to ask about, by the way. It does cause a problem
when it tries to print out and there's no terminal to print to, then these parts
of the app just don't work. I have to turn off debugging when I use it without
a terminal (i.e. by double-clicking on desktop). Is there a quick workaround
or the quick work around would be using logging module?

thx,

···

On Mon, Apr 14, 2008 at 1:52 PM, AK <andrei.avk@gmail.com > <mailto:andrei.avk@gmail.com>> wrote:

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

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.

Martin

···

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

Roee,

Malcolm said: ... shows a generic Windows icon vs. your Airs application icon when you hold down the Alt+Tab key to switch applications in Windows.

<snip>
Roee said:
The problem only happens when the icon is taken from the embeded image
generated by img2py. When using `airs.ico` as the application icon
everything works fine. At first I though its because of the image size
(16*16 in the image vs max 32*32 in the icon), but this isn't the case.

To test, change airs/gui/AirsFrame.py line 44, from:

self.SetIcon(wx.IconFromBitmap(icon_main.getBitmap()))

to:

self.SetIcon(wx.Icon("airs.ico", wx.BITMAP_TYPE_ICO))
</snip>

Thanks for that explanation!

Malcolm

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.

···

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

:slight_smile:
well I guess I’m morbidly optimistic.

sorry for the confusion I’ve created. :slight_smile:

···

On Mon, Apr 14, 2008 at 5: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.

Martin


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

http://lists.wxwidgets.org/mailman/listinfo/wxpython-users


There is NO FATE, we are the creators.

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:

File ".. tobu-0.5.0/tobu-0.5.0/TextCtrlAutoComplete.py", line 108, in __init__
    self.dropdown = wx.PopupWindow( self )
  File "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/_windows.py", line 1736, in __init__
    _windows_.PopupWindow_swiginit(self,_windows_.new_PopupWindow(*args, **kwargs))
NotImplementedError

So, is there an easy fix for this? 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.

···

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