I have code that works in linux, and in windows, but does NOT in OSx

ArchiveViewer.exe

av.zip (10.6 KB)

···

===================

Prerequistes:

Python 2.6+

wxPython (latest version)

HTML.py (from http://www.decalage.info/python/html) - download, unzip, install

sqlite3 (installed with python)

any database (*.db)

Running:

$ python archiveviewer.py

You will find 3 panels: two at the top, one on the bottom.

top left: tree of databases, tables, and queries

top right: sql query editor (just a text box)

bottom: a notebook with 2 tabs

a “results” tab (when double clicking on a specific query in the tree)

a sql field selector

sequence would be:

  1. click open database and choose a sqlite database (*.db)

  2. click on a table in the tree: you will set the database and table fields

  3. click new query button

  4. select some field to display

  5. click “generate sql” -> to get query into top right text box

  6. edit the query if you want (or not)

  7. when ready click the “save” button, and it will show up in the tree in the correct place

  8. double click on the query (in the tree), and the results will show

My trouble:

  1. Everything works fine in both Windows (with py2exe), and in linux (in a VM under my mac)

  2. in native OSx it does NOT work.

In OSx, The top two panels work fine. The Notebook panel (the bottom) is dead to any and all clicking events.

So why would it work just fine in those two, and not OSx? My first guess would be it would have worked in linux and osx and not windows.


Licensed Amateur Radio Operator: K7AZJ
Registered Linux User: 275424

Recursion: (noun):
see: Recursion

Hi Jerry,

ArchiveViewer.exe

===================

Prerequistes:

Python 2.6+

wxPython (latest version)

HTML.py (from http://www.decalage.info/python/html) - download, unzip, install

sqlite3 (installed with python)

any database (*.db)

Running:

$ python archiveviewer.py

You will find 3 panels: two at the top, one on the bottom.

top left: tree of databases, tables, and queries

top right: sql query editor (just a text box)

bottom: a notebook with 2 tabs

a “results” tab (when double clicking on a specific query in the tree)

a sql field selector

sequence would be:

  1. click open database and choose a sqlite database (*.db)
  1. click on a table in the tree: you will set the database and table fields
  1. click new query button
  1. select some field to display
  1. click “generate sql” → to get query into top right text box
  1. edit the query if you want (or not)
  1. when ready click the “save” button, and it will show up in the tree in the correct place
  1. double click on the query (in the tree), and the results will show

My trouble:

  1. Everything works fine in both Windows (with py2exe), and in linux (in a VM under my mac)
  1. in native OSx it does NOT work.

In OSx, The top two panels work fine. The Notebook panel (the bottom) is dead to any and all clicking events.

So why would it work just fine in those two, and not OSx? My first guess would be it would have worked in linux and osx and not windows.

Don’t create controls that go inside a static box before you create the static box itself. See the note at the top of wxStaticBox docs.

http://docs.wxwidgets.org/stable/wx_wxstaticbox.html#wxstaticbox

Better yet, if you’re using 2.9.2 you should actually finally be able to create a normal parent / child relationship between wx.StaticBox and its children.

Kevin

···

On Aug 17, 2011, at 4:07 PM, Jerry Davis wrote:


Licensed Amateur Radio Operator: K7AZJ
Registered Linux User: 275424

Recursion: (noun):
see: Recursion

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en<av.zip>

Kevin,

That did the trick. You are fast!! I didn’t expect an answer so soon.

Jerry

···

On Wed, Aug 17, 2011 at 4:27 PM, Kevin Ollivier kevin-lists@theolliviers.com wrote:

Hi Jerry,

On Aug 17, 2011, at 4:07 PM, Jerry Davis wrote:

ArchiveViewer.exe

===================

Prerequistes:

Python 2.6+

wxPython (latest version)

HTML.py (from http://www.decalage.info/python/html) - download, unzip, install

sqlite3 (installed with python)

any database (*.db)

Running:

$ python archiveviewer.py

You will find 3 panels: two at the top, one on the bottom.

top left: tree of databases, tables, and queries

top right: sql query editor (just a text box)

bottom: a notebook with 2 tabs

a “results” tab (when double clicking on a specific query in the tree)

a sql field selector

sequence would be:

  1. click open database and choose a sqlite database (*.db)
  1. click on a table in the tree: you will set the database and table fields
  1. click new query button
  1. select some field to display
  1. click “generate sql” → to get query into top right text box
  1. edit the query if you want (or not)
  1. when ready click the “save” button, and it will show up in the tree in the correct place
  1. double click on the query (in the tree), and the results will show

My trouble:

  1. Everything works fine in both Windows (with py2exe), and in linux (in a VM under my mac)
  1. in native OSx it does NOT work.

In OSx, The top two panels work fine. The Notebook panel (the bottom) is dead to any and all clicking events.

So why would it work just fine in those two, and not OSx? My first guess would be it would have worked in linux and osx and not windows.

Don’t create controls that go inside a static box before you create the static box itself. See the note at the top of wxStaticBox docs.

http://docs.wxwidgets.org/stable/wx_wxstaticbox.html#wxstaticbox

Better yet, if you’re using 2.9.2 you should actually finally be able to create a normal parent / child relationship between wx.StaticBox and its children.

Kevin


Licensed Amateur Radio Operator: K7AZJ
Registered Linux User: 275424

Recursion: (noun):
see: Recursion

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en<av.zip>

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en


Licensed Amateur Radio Operator: K7AZJ

Registered Linux User: 275424

Recursion: (noun):
see: Recursion

Kevin,

Would you have time to look to see why I can’t click on any of the attachment links in osx?

The attachment links are in the right hand lower pane and show up when you click on one of the entries in the results table. Right now the links are hard coded to like a couple of URL’s – but that doesn’t matter. Just so I can click on them.

I have updated the zip file so the results will work in osx.

Thanks,

Jerry

av.zip (10.8 KB)

···

On Wed, Aug 17, 2011 at 4:48 PM, Jerry Davis jdawgaz@gmail.com wrote:

Kevin,

That did the trick. You are fast!! I didn’t expect an answer so soon.

Jerry

On Wed, Aug 17, 2011 at 4:27 PM, Kevin Ollivier kevin-lists@theolliviers.com wrote:

Hi Jerry,

On Aug 17, 2011, at 4:07 PM, Jerry Davis wrote:

ArchiveViewer.exe

===================

Prerequistes:

Python 2.6+

wxPython (latest version)

HTML.py (from http://www.decalage.info/python/html) - download, unzip, install

sqlite3 (installed with python)

any database (*.db)

Running:

$ python archiveviewer.py

You will find 3 panels: two at the top, one on the bottom.

top left: tree of databases, tables, and queries

top right: sql query editor (just a text box)

bottom: a notebook with 2 tabs

a “results” tab (when double clicking on a specific query in the tree)

a sql field selector

sequence would be:

  1. click open database and choose a sqlite database (*.db)
  1. click on a table in the tree: you will set the database and table fields
  1. click new query button
  1. select some field to display
  1. click “generate sql” → to get query into top right text box
  1. edit the query if you want (or not)
  1. when ready click the “save” button, and it will show up in the tree in the correct place
  1. double click on the query (in the tree), and the results will show

My trouble:

  1. Everything works fine in both Windows (with py2exe), and in linux (in a VM under my mac)
  1. in native OSx it does NOT work.

In OSx, The top two panels work fine. The Notebook panel (the bottom) is dead to any and all clicking events.

So why would it work just fine in those two, and not OSx? My first guess would be it would have worked in linux and osx and not windows.

Don’t create controls that go inside a static box before you create the static box itself. See the note at the top of wxStaticBox docs.

http://docs.wxwidgets.org/stable/wx_wxstaticbox.html#wxstaticbox

Better yet, if you’re using 2.9.2 you should actually finally be able to create a normal parent / child relationship between wx.StaticBox and its children.

Kevin


Licensed Amateur Radio Operator: K7AZJ
Registered Linux User: 275424

Recursion: (noun):
see: Recursion

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en<av.zip>

To unsubscribe, send email to wxPython-users+unsubscribe@googlegroups.com

or visit http://groups.google.com/group/wxPython-users?hl=en


Licensed Amateur Radio Operator: K7AZJ

Registered Linux User: 275424

Recursion: (noun):
see: Recursion


Licensed Amateur Radio Operator: K7AZJ
Registered Linux User: 275424

Recursion: (noun):
see: Recursion