Hi,
I need to wrap a text in a cell of a grid. I need to import the following module for implementing the same.
from wxPython.grid import wxGridCellAutoWrapStringRenderer
But when I run the application, it is giving an error. The error is attached in the snapshot. Please help me in resolving this error.
Regards,
Rajendra
···
-----Original Message-----
From: wxpython-users-bounces@lists.wxwidgets.org [mailto:wxpython-users-bounces@lists.wxwidgets.org] On Behalf Of wxpython-users-request@lists.wxwidgets.org
Sent: Friday, May 15, 2009 9:25 AM
To: wxpython-users@lists.wxwidgets.org
Subject: wxpython-users Digest, Vol 15, Issue 69
Send wxpython-users mailing list submissions to
wxpython-users@lists.wxwidgets.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
or, via email, send a message with subject or body 'help' to
wxpython-users-request@lists.wxwidgets.org
You can reach the person managing the list at
wxpython-users-owner@lists.wxwidgets.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of wxpython-users digest..."
Today's Topics:
1. Re: masked.NumCtrl wierd behaviour (Werner F. Bruhin)
2. Re: masked.NumCtrl wierd behaviour (Mike Driscoll)
3. Re: Re: [wxpython-dev] 20090503 test build uploaded
(Werner F. Bruhin)
4. Re: masked.NumCtrl wierd behaviour (Werner F. Bruhin)
5. Re: masked.NumCtrl wierd behaviour (C M)
6. wx.MediaCtrl (Qui Le)
7. Re: missing rich text control methods (Stephen M. Gava)
8. Re: w32 extension problem (Didrik Pinte)
9. Re: w32 extension problem (Didrik Pinte)
----------------------------------------------------------------------
Message: 1
Date: Thu, 14 May 2009 22:20:07 +0200
From: "Werner F. Bruhin" <werner.bruhin@free.fr>
Subject: Re: [wxpython-users] masked.NumCtrl wierd behaviour
To: wxPython-users@lists.wxwidgets.org
Message-ID: <4A0C7CF7.5030204@free.fr>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Marco De Felice wrote:
hi all
If I do this:
self.txt_limit = masked.NumCtrl(pane, -1, value = 30)
self.txt_limit.SetParameters( integerWidth = 3)
self.txt_limit.SetValue(30)I get a valuerror:
ValueError: value 3030 exceeds the integer width of the control
I have seen this too, I think it is a but in NumCtrl that sometimes the
SetValue does not align correctly. For example if you change
integerWidth to 4 it will probably go away.
By increasing the integerWidth the NumCtrl ends up with a value of 30,
wich is right, but anyway before displaing itself he thinks of having
a value of 3030 (the reseved gui space is bigger too)
It reserves space for negative value, change AllowNegative to False.
You might also want to use ChangeValue, so that you do not generate
change events when programmatically changing the value.
BTW, if I do the following on Py26 and wxPython 2.8.9.1pre (I think I
have seen this on earlier versions too) I get a crash, instead of a crash.
self.numCtrl1 =
wx.lib.masked.numctrl.NumCtrl(id=wxID_FRAME1NUMCTRL1,
name='numCtrl1', parent=self.panel1, pos=wx.Point(0, 33),
size=wx.Size(29, 22), style=0, value=0)
self.numCtrl1.SetAllowNegative(False)
self.numCtrl1.SetIntegerWidth(3)
self.numCtrl1.ChangeValue(3000)
but the following is fine:
self.numCtrl1.ChangeValue(300)
Werner
------------------------------
Message: 2
Date: Thu, 14 May 2009 15:35:08 -0500
From: Mike Driscoll <mike@pythonlibrary.org>
Subject: Re: [wxpython-users] masked.NumCtrl wierd behaviour
To: wxpython-users@lists.wxwidgets.org
Message-ID: <4A0C807C.9060004@pythonlibrary.org>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Werner F. Bruhin wrote:
Marco De Felice wrote:
hi all
If I do this:
self.txt_limit = masked.NumCtrl(pane, -1, value = 30)
self.txt_limit.SetParameters( integerWidth = 3)
self.txt_limit.SetValue(30)I get a valuerror:
ValueError: value 3030 exceeds the integer width of the control
I have seen this too, I think it is a but in NumCtrl that sometimes
the SetValue does not align correctly. For example if you change
integerWidth to 4 it will probably go away.By increasing the integerWidth the NumCtrl ends up with a value of
30, wich is right, but anyway before displaing itself he thinks of
having a value of 3030 (the reseved gui space is bigger too)It reserves space for negative value, change AllowNegative to False.
You might also want to use ChangeValue, so that you do not generate
change events when programmatically changing the value.BTW, if I do the following on Py26 and wxPython 2.8.9.1pre (I think I
have seen this on earlier versions too) I get a crash, instead of a
crash.
I'm confused by this...what is the difference between the crashes )i.e.
"I get a crash, instead of a crash")?
- Mike
------------------------------
Message: 3
Date: Thu, 14 May 2009 22:55:42 +0200
From: "Werner F. Bruhin" <werner.bruhin@free.fr>
Subject: Re: [wxpython-users] Re: [wxpython-dev] 20090503 test build
uploaded
To: wxpython-users@lists.wxwidgets.org
Message-ID: <4A0C854E.2030702@free.fr>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi Andrea,
Andrea Gavana wrote:
...
I see no error messages (except the deprecation for import sets one) and the
message and actions window shows:
- finding required modules
- Byte-compiling Python files (5 times)
- Copying filesand then nothing, but then in the executable window (on the left) it updates
the size and the file number.
Uhm, by looking at the code logic in GUI2Exe this seems quite
impossible (it's not that I don't believe you, I just can't see how
this happens). What I do is:- Read the input stream from the py2exe process => show an informative
message in the log;
- Read the error stream from the py2exe process => show an error
message in the log if the error stream is not empty;
- When the process is finished, show an informative message if the
compilation was succesful, or an error message if the error stream is
not empty.
FYI, If I patch build_exe.py in py2exe to get rid of the deprecation
warning, then the compile finishes correctly and I get the option to run
the compiled exe.
hack to build_exe.py is:
# in import section
if sys.version_info < 2.6:
import sets
mySet = sets.Set()
else:
mySet = set()
# in def fixup_distribution(
## paths = sets.Set()
paths = mySet
# in def find_dependend_dlls(
## templates = sets.Set()
templates = mySet
Werner
------------------------------
Message: 4
Date: Thu, 14 May 2009 22:57:53 +0200
From: "Werner F. Bruhin" <werner.bruhin@free.fr>
Subject: Re: [wxpython-users] masked.NumCtrl wierd behaviour
To: wxpython-users@lists.wxwidgets.org
Message-ID: <4A0C85D1.4080004@free.fr>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Hi Mike,
Mike Driscoll wrote:
...
BTW, if I do the following on Py26 and wxPython 2.8.9.1pre (I think I
have seen this on earlier versions too) I get a crash, instead of a
crash.I'm confused by this...what is the difference between the crashes
)i.e. "I get a crash, instead of a crash")?
Maybe time to go to bed , should read "I get a crash, instead of a
nice traceback"
Werner
------------------------------
Message: 5
Date: Thu, 14 May 2009 18:15:19 -0400
From: C M <cmpython@gmail.com>
Subject: Re: [wxpython-users] masked.NumCtrl wierd behaviour
To: wxpython-users@lists.wxwidgets.org
Message-ID:
<cc8074370905141515v3719409ai4a6da3a6dba95ec0@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
On 5/14/09, Werner F. Bruhin <werner.bruhin@free.fr> wrote:
Hi Mike,
Mike Driscoll wrote:
...BTW, if I do the following on Py26 and wxPython 2.8.9.1pre (I think I
have seen this on earlier versions too) I get a crash, instead of a
crash.I'm confused by this...what is the difference between the crashes
)i.e. "I get a crash, instead of a crash")?Maybe time to go to bed , should read "I get a crash, instead of a
nice traceback"Werner
No, Werner, you should stay up even later and compose more of
these zen koans!
------------------------------
Message: 6
Date: Thu, 14 May 2009 16:26:41 -0700
From: Qui Le <qle@extron.com>
Subject: [wxpython-users] wx.MediaCtrl
To: <wxpython-users@lists.wxwidgets.org>
Message-ID:
<7E5F99BC557C0B42B6F3BB7BED701D4E1D5FCEAA@EXCH-USA.extron.com>
Content-Type: text/plain; charset="us-ascii"
Nevermind, got it to work. Too simple, should've figured it out.
Statement Of Confidentiality:
This electronic message transmission, and all attachments, contains information from Extron Electronics which is confidential and privileged. The information is for the exclusive viewing or use of the intended recipient. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic transmission in error, please notify the sender immediately by a "reply to sender only" message and destroy all electronic and hard copies of the communication, including attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20090514/f9a5c461/attachment-0001.htm
------------------------------
Message: 7
Date: Fri, 15 May 2009 11:01:28 +1000
From: "Stephen M. Gava" <elguavas@python.net>
Subject: Re: [wxpython-users] missing rich text control methods
To: wxpython-users@lists.wxwidgets.org
Message-ID: <4A0CBEE8.6050402@python.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Mike Driscoll wrote:
Stephen M. Gava wrote:
Hi all,
I find, using the latest 2.8.9.2 bindings on OSX, that there are methods
listed for the wxRichTextCtrl in the current wxDocs (the ones linked
from wxpython.org that appear to be the docs for wxWidgets 2.8.10), that
are not available from wxPython. For example I have code which could use
[...]
Cheers,
Stephen.I'm fairly certain that this was asked before in the last few weeks and
I think Robin said that they would be wrapped in the next release (or
the one after that). Check the archives to be sure I'm not mis-quoting him.-------------------
Mike Driscoll
Ok I skimmed the list archives for the last few months and googled, but
I can't find the previous message(s) about this you're referring to.
In any case, if the answer _is_ that this will be in the next release,
where can I get a prerelease build for OSX python 2.6.2 to test?
Thanks,
Stephen.
------------------------------
Message: 8
Date: Fri, 15 May 2009 03:54:58 +0200
From: Didrik Pinte <lists@dipole-consulting.com>
Subject: Re: [wxpython-users] w32 extension problem
To: wxpython-users@lists.wxwidgets.org
Message-ID: <1242352498.5085.4.camel@ddp>
Content-Type: text/plain; charset="us-ascii"
On Thu, 2009-05-14 at 10:50 -0700, Christopher Barker wrote:
Didrik Pinte wrote:
> I will try to track down what wx thing could be called before creating
> the app. They are lots of imports before creating the app, probably that
> one of them is setting something on the wx side.What version of wx are you porting from?
A good while ago (2.4, 2.6?), wxPython initialized a lot more on import,
then it was switched to not do the initialization until the wxApp was
created. This means that start-up code written a long time ago needs to
be refactored.-Chris
Hi Chris,
I guess that the ThubanApplication that extends wx.App has been written
somewhat near 2002/2003 ...
but it worked fine with the latest wx 2.6.3 and 2.6.4
Didrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20090515/66a1c578/attachment-0001.pgp
------------------------------
Message: 9
Date: Fri, 15 May 2009 05:52:44 +0200
From: Didrik Pinte <lists@dipole-consulting.com>
Subject: Re: [wxpython-users] w32 extension problem
To: wxpython-users@lists.wxwidgets.org
Message-ID: <1242359564.5085.11.camel@ddp>
Content-Type: text/plain; charset="us-ascii"
Thank you all guys for your quick and good
comments/reactions/suggestions.
I tracked down the problem a bit and found out that there was a call to
wx.Locale_AddCatalogLookupPrefix before creating the wx.App !
Thanks
Didrik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20090515/b8f5b412/attachment.pgp
------------------------------
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
End of wxpython-users Digest, Vol 15, Issue 69
**********************************************
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
every reasonable precaution to minimize this risk, but is not liable for any damage
you may sustain as a result of any virus in this e-mail. You should carry out your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***