w.Panel markable text

how can I make my wx.panel element mark able so I could select the text with my mouse cursor?

thank you!

יהודה wrote:

how can I make my wx.panel element mark able so I could select the text with my mouse cursor?

thank you!

You can't put text directly on the panel. You'll have to use a wx.StaticText, wx.TextCtrl, a DC or something else to put the text on. If you want the text to be selectable, I would recommend some sort of TextCtrl with or without a border.

···

-------------------
Mike Driscoll

Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org

then how can I make the TextCtrl to auto expand and wrap like my statictext and is their any other way to do it?

···

On Sat, Dec 13, 2008 at 6:32 PM, Mike Driscoll mike@pythonlibrary.org wrote:

יהודה wrote:

how can I make my wx.panel element mark able so I could select the text with my mouse cursor?

thank you!

You can’t put text directly on the panel. You’ll have to use a wx.StaticText, wx.TextCtrl, a DC or something else to put the text on. If you want the text to be selectable, I would recommend some sort of TextCtrl with or without a border.


Mike Driscoll

Blog: http://blog.pythonlibrary.org

Python Extension Building Network: http://www.pythonlibrary.org


wxpython-users mailing list

wxpython-users@lists.wxwidgets.org

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


http://kaze.co.il
יש קצה חוט לרעיון שלך

יהודה wrote:

then how can I make the TextCtrl to auto expand and wrap like my statictext and is their any other way to do it?

Use your sizer's wx.EXPAND flag and wx.lib's wordwrap module...

Mike

···

On Sat, Dec 13, 2008 at 6:32 PM, Mike Driscoll <mike@pythonlibrary.org > <mailto:mike@pythonlibrary.org>> wrote:

    יהודה wrote:

        how can I make my wx.panel element mark able so I could
        select the text with my mouse cursor?

        thank you!

    You can't put text directly on the panel. You'll have to use a
    wx.StaticText, wx.TextCtrl, a DC or something else to put the text
    on. If you want the text to be selectable, I would recommend some
    sort of TextCtrl with or without a border.

    -------------------
    Mike Driscoll

    Blog: http://blog.pythonlibrary.org
    Python Extension Building Network: http://www.pythonlibrary.org

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

--
http://kaze.co.il
יש קצה חוט לרעיון שלך
------------------------------------------------------------------------

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