Hi-
Is there a way to get the updated demos that are listed as 'final' on http://wiki.wxpython.org/index.cgi/wxPython_202_2e5_20Demo_20Update_20St
atus ?
I'm learning wxPython now, and want to use the updated namespace
method, but find most examples using the old method. (In particular,
I'd like to see updated StyledTextCtrl_2.py, and Sizers.py if that's
finalized.) Thanks-
John
PS In the new namespace method for STC, do we use:
from wx import stc
I read an old dev email that suggested also supporting
import wx.stc
which seems more consistent with the new method, but
doesn't work for me right now.
Hi-
Is there a way to get the updated demos that are listed as 'final' on http://wiki.wxpython.org/index.cgi/wxPython_202_2e5_20Demo_20Update_20St
atus ?
I'm learning wxPython now, and want to use the updated namespace
method, but find most examples using the old method. (In particular,
I'd like to see updated StyledTextCtrl_2.py, and Sizers.py if that's
finalized.) Thanks-
Much of the new demo code will not work with 2.4.2.4 because of other changes in 2.5. If you want to join the test group and are willing to test the preview build then I can give you pointers to download a preview version. Just join the wxPython-dev list and ask there. (I don't want to make a general announcement here because the files are on a local machine here at home and I don't want to overload my Net connection.)
John
PS In the new namespace method for STC, do we use:
from wx import stc
I read an old dev email that suggested also supporting
import wx.stc
Either way is fine. Whatever makes sense to you.
which seems more consistent with the new method, but doesn't work for me right now.
It should. Do you "import wx" first?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
> PS In the new namespace method for STC, do we use:
> from wx import stc
> I read an old dev email that suggested also supporting
> import wx.stc
Either way is fine. Whatever makes sense to you.
> which seems more consistent with the new method, but
> doesn't work for me right now.
It should. Do you "import wx" first?
I tried
import wx
import wx.stc
and
import wx, wx.stc
both on Linux and Windows, and it didn't work either place, although
'from wx import stc' works in both.
Details:
I have a conservative setup on RedHat Fedora,
using only RPMs that are consistent with its
latest version of Python.
python 2.2.3-7
wxGTK 2.4.2-1
wxPythonGTK-py2.2-2.4.2.4-1
Windows 2000 v5.0 service pak 3
python 2.3.2
wx ?
wxPythonWIN32-2.4.2.4u-Py23.exe
PS In the new namespace method for STC, do we use:
from wx import stc
I read an old dev email that suggested also supporting
import wx.stc
Either way is fine. Whatever makes sense to you.
which seems more consistent with the new method, but doesn't work for me right now.
It should. Do you "import wx" first?
I tried
import wx
import wx.stc
and
import wx, wx.stc
both on Linux and Windows, and it didn't work either place, although
'from wx import stc' works in both.
In what way didn't it work? Did you get an error?
Python 2.3 (#2, Aug 31 2003, 17:27:29)
[GCC 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> print wx.VERSION_STRING
2.4.2.4
···
import wx.stc
>>>
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
>>>PS In the new namespace method for STC, do we use:
>>> from wx import stc
>>>I read an old dev email that suggested also supporting
>>> import wx.stc
>>
>>Either way is fine. Whatever makes sense to you.
>>
>>
>>>which seems more consistent with the new method, but
>>>doesn't work for me right now.
>>
>>It should. Do you "import wx" first?
>>
>
>
> I tried
> import wx
> import wx.stc
>
> and
>
> import wx, wx.stc
>
> both on Linux and Windows, and it didn't work either place, although
> 'from wx import stc' works in both.
In what way didn't it work? Did you get an error?
Python 2.3 (#2, Aug 31 2003, 17:27:29)
[GCC 3.3.1 (Mandrake Linux 9.2 3.3.1-1mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> print wx.VERSION_STRING
2.4.2.4
>>> import wx.stc
>>>
Sorry--found the problem. I hadn't changed my 'from wx import stc'
code from: