Python

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • wx.ListCtrl & Adding to a Tab

    13 answers - 1353 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    The wxWidgets docs for wx.ListCtrl are pretty thin; we're referred to an
    example that does not exist. I _think_ it's the widget I need, but I cannot
    tell from the information there. Then there's the issue of adding it below a
    wx.FlexGridSizer on a notebook tab.
    For each client, I want to display project number, project description,
    start date, end date, and revenues. As projects accumulate over time, I'd
    like to see these in a scrollable window. My naivety suggests that the
    wx.ListCtrl is the appropriate widget. Is it?
    Designing the layout with wxGlade (which I like more and more as I learn
    where things are hidden -- thank you, Horst!), I have a tabbed notebook and
    one of the tabs contains client information. Now, there is a wx.FlexGridSizer
    on that tab, but it fills only the top half. I would like to place the
    wx.ListCtrl beneath it on the same tab, but haven't stumbled across the
    proper way to do this. A right-click on the notebook_pane line in the tree
    window brings up a menu, but that contains no option to expand the widgets
    placed on it. Immediately below the wx.FlexGridSizer is the next notebook
    pane. How can I insert a second widget on the notebook tab? And, if this is
    documented, please point me to the proper place.
    TIA,
    Rich
  • No.1 | | 2081 bytes | |

    Hi Rich,

    Rich Shepard wrote:

    The wxWidgets docs for wx.ListCtrl are pretty thin; we're referred
    to an
    example that does not exist. I _think_ it's the widget I need, but I
    cannot
    tell from the information there. Then there's the issue of adding it
    below a
    wx.FlexGridSizer on a notebook tab.

    For each client, I want to display project number, project description,
    start date, end date, and revenues. As projects accumulate over time, I'd
    like to see these in a scrollable window. My naivety suggests that the
    wx.ListCtrl is the appropriate widget. Is it?

    Sounds o.k. to me, check out the wxPython demo, in particular under the
    Core/Windows control section the ListCtrl (provides support for sorting
    of the column by clicking on the header) and/or ListCtrl_virtual if your
    list is potentially very large this might be better - but no sorting
    support (you will have to sort the data yourself as this list has no
    control over it).

    Sorry can't help with the wxGlade stuff.

    See you
    Werner

    Designing the layout with wxGlade (which I like more and more as I
    learn
    where things are hidden -- thank you, Horst!), I have a tabbed
    notebook and
    one of the tabs contains client information. Now, there is a
    wx.FlexGridSizer
    on that tab, but it fills only the top half. I would like to place the
    wx.ListCtrl beneath it on the same tab, but haven't stumbled across the
    proper way to do this. A right-click on the notebook_pane line in the
    tree
    window brings up a menu, but that contains no option to expand the
    widgets
    placed on it. Immediately below the wx.FlexGridSizer is the next notebook
    pane. How can I insert a second widget on the notebook tab? And, if
    this is
    documented, please point me to the proper place.

    TIA,

    Rich

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.2 | | 302 bytes | |

    Hi all,

    How do i connect wsPython with Postgresql 8.0?

    links, samples, libs?

    thanks.

    JC

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.3 | | 812 bytes | |

    Hi JC,

    A little google search for "postgresql python" found lots of stuff.

    Here is one which looks interesting:

    See you
    Werner

    Ing. Jhon Carrillo - Caracas, Venezuela wrote:

    >Hi all,
    >
    >How do i connect wsPython with Postgresql 8.0?
    >
    >links, samples, libs?
    >
    >thanks.
    >
    >JC
    >
    >
    >
    >To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    >For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
    >
    >
    >
    >


    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.4 | | 792 bytes | |

    Tue, 16 Aug 2005, Werner F. Bruhin wrote:

    Sounds o.k. to me, check out the wxPython demo, in particular under the
    Core/Windows control section the ListCtrl (provides support for sorting of
    the column by clicking on the header) and/or ListCtrl_virtual if your list
    is potentially very large this might be better - but no sorting support
    (you will have to sort the data yourself as this list has no control over
    it).

    Werner,

    Thanks for the pointer. It seems to me that using a custom grid table might
    be better than the ListCtrl. In either case, the user needs to be able to
    enter data in each "cell" or "column", and I've no idea of the relative
    merits of each widget. Guess I'll try one and see how it works.

    Thanks,

    Rich
  • No.5 | | 1483 bytes | |

    Rich,

    Rich Shepard wrote:

    Tue, 16 Aug 2005, Werner F. Bruhin wrote:
    >
    >Sounds o.k. to me, check out the wxPython demo, in particular under the
    >Core/Windows control section the ListCtrl (provides support for
    >sorting of
    >the column by clicking on the header) and/or ListCtrl_virtual if your
    >list
    >is potentially very large this might be better - but no sorting support
    >(you will have to sort the data yourself as this list has no control
    >over
    >it).
    >
    >

    Werner,

    Thanks for the pointer. It seems to me that using a custom grid
    table might
    be better than the ListCtrl. In either case, the user needs to be able to
    enter data in each "cell" or "column", and I've no idea of the relative
    merits of each widget. Guess I'll try one and see how it works.

    You mentioned "display" in your earlier post, in which case ListCtrl
    would probably be better/faster. I let user then select a line and put
    things into textCtrl's etc for user to edit, however if you want
    "in-line" editing then it is more likely a Grid, but you might want to
    look at the listctrl_edit example in the demo too.

    See you
    Werner

    Thanks,

    Rich

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.6 | | 616 bytes | |

    Rich Shepard wrote:
    Now, there is a
    wx.FlexGridSizer
    on that tab, but it fills only the top half. I would like to place the
    wx.ListCtrl beneath it on the same tab, but haven't stumbled across the
    proper way to do this.

    I have not idea how you'd do this with wxGlade, but by hand, you would:

    create a custom w.Panel for this notebook page.

    that Panel, you'd have a vertical box sizer. In that box sizer, you'd
    have your FlexGridSizer on the top, and the ListCtrl (or wx.Grid) on the
    bottom.

    You can probably make wxGlade do that for you.
    -chris
  • No.7 | | 537 bytes | |

    Tue, 16 Aug 2005, Chris Barker wrote:

    I have not idea how you'd do this with wxGlade, but by hand, you would:

    create a custom w.Panel for this notebook page.

    that Panel, you'd have a vertical box sizer. In that box sizer, you'd have
    your FlexGridSizer on the top, and the ListCtrl (or wx.Grid) on the bottom.

    You can probably make wxGlade do that for you.

    chris,

    Sigh. course. Add another container beneath those two and there's no
    problem.

    Thanks,

    Rich
  • No.8 | | 734 bytes | |

    Tue, 16 Aug 2005, Chris Barker wrote:

    that Panel, you'd have a vertical box sizer. In that box sizer, you'd have
    your FlexGridSizer on the top, and the ListCtrl (or wx.Grid) on the bottom.

    You can probably make wxGlade do that for you.

    chris,

    For the record here's what I did:

    1. Add a new tab to the end of the list (name "temp").
    2. Copy FlexGridSizer from pane_2 to the temp tab, pane_4.
    3. Delete FlexGridSizer from pane_2; replace with a vertical BoxSizer of
    size 2.
    4. Copy FlexGridSizer from pane_4 ("temp") to the upper compartment in
    pane_2.
    5. Delete the temp tab.
    6. Add a ListCtrl to bottom container of pane_2.

    Thanks,

    Rich
  • No.9 | | 1214 bytes | |

    Ing. Jhon Carrillo - Caracas, Venezuela wrote:
    Hi all,

    How do i connect wsPython with Postgresql 8.0?

    links, samples, libs?

    I've been using for a while now. It seems to
    work fine; no stability issues. The dev and users lists aren't very active
    tho. Documentation is scarce, but just use the DB 2.0 API docs at python.org
    to get started. The README is their only real documentation but it does have a
    lot of information in it. Actual homepage is here:

    http://www.pygresql.org seems to be the most widely known and used. But I
    won't use it because they don't supply binaries for any platform. (I am too
    busy building my own apps to have to do someone else's also. Just my opinion.)

    Note that none of these have anything to do with wxPython per se. It's just
    Python.

    In theory you could use the DBC drivers to connect to PostgreSQL via its DBC
    driver. But that seems like lots of extra layers. Haven't tried it.

    Michael

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.10 | | 592 bytes | |

    Tue, 16 Aug 2005, Michael Hipp wrote:

    >How do i connect wsPython with Postgresql 8.0?


    I've been using for a while now. It seems to
    work fine; no stability issues. The dev and users lists aren't very active
    tho. Documentation is scarce, but just use the DB 2.0 API docs at python.org
    to get started. The README is their only real documentation but it does have
    a lot of information in it. Actual homepage is here:

    Google is your friend for this sort of question.

    Also take a look at psycopg <>

    Rich
  • No.11 | | 242 bytes | |

    Tuesday 16 August 2005 14:05, Ing. Jhon Carrillo - Caracas, Venezuela
    wrote:
    How do i connect wsPython with Postgresql 8.0?
    links, samples, libs?
    Dabo has built-in connectivity for PostgreSQL. What do you need to do?
  • No.12 | | 1079 bytes | |

    I second Rich's mothon.

    I used pypgsql for a while, and ran into minor issues. Psycopg is more
    actively maintaned and is a better performer, psycopg is a better
    choice, IM

    Rich Shepard wrote:

    Tue, 16 Aug 2005, Michael Hipp wrote:

    How do i connect wsPython with Postgresql 8.0?
    >>

    >
    >I've been using for a while now. It
    >seems to work fine; no stability issues. The dev and users lists
    >aren't very active tho. Documentation is scarce, but just use the DB
    >2.0 API docs at python.org to get started. The README is their only
    >real documentation but it does have a lot of information in it.
    >Actual homepage is here:
    >
    >

    Google is your friend for this sort of question.

    Also take a look at psycopg <>

    Rich

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org
  • No.13 | | 689 bytes | |

    Rich Shepard wrote:
    >Also take a look at psycopg <>


    Joe Brown wrote:
    I second Rich's mothon.

    I used pypgsql for a while, and ran into minor issues. Psycopg is more
    actively maintaned and is a better performer, psycopg is a better
    choice, IM

    This is good feedback. I think I will try psycopg. It does seem to have
    frequent releases. Best of all I just found this page that supplies Win32
    binaries:

    Thanks,
    Michael

    To unsubscribe, e-mail: wxPython-users-unsubscribe (AT) lists (DOT) wxwidgets.org
    For additional commands, e-mail: wxPython-users-help (AT) lists (DOT) wxwidgets.org

Re: wx.ListCtrl & Adding to a Tab


max 4000 letters.
Your nickname that display:
In order to stop the spam: 3 + 2 =
QUESTION ON "Python"

EMSDN.COM