Python论坛  - 讨论区

标题:[python-chinese] 有没有方法, 改变 wx.ListCtrl 中item的高度

2007年06月19日 星期二 17:13

wang_zheng_yong wang_zheng_yong在163.com
星期二 六月 19 17:13:38 HKT 2007

ÓÐûÓз½·¨£¬ ¸Ä±ä wx.ListCtrl ÖÐitemµÄ¸ß¶È£¿


   
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070619/070246bc/attachment-0001.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年06月19日 星期二 18:47

cun heise cunheise在hotmail.com
星期二 六月 19 18:47:32 HKT 2007

class ContactForm(forms.Form):
	email = forms.EmailField(label = 'Your Email (replies will be sent to this 
address, make sure it is correct)', max_length = 200)
	subject = forms.CharField(max_length = 200, widget = forms.HiddenInput)
	content = forms.CharField(widget = forms.Textarea(attrs = {'rows': 5, 
'cols': 45}))

现在我想控制render的emailfield的size
turn

into

我该如何做,找了半天也没有doc
看了一些文档说好像用boundfield,
不过又有一些说是widget,但是widget 不能控制emailfiled,不知道该如何是好。

_________________________________________________________________
与联机的朋友进行交流,请使用  Live Messenger; 
http://get.live.com/messenger/overview 


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年06月19日 星期二 20:22

黄毅 yi.codeplayer在gmail.com
星期二 六月 19 20:22:09 HKT 2007

email = forms.EmailField(... , widget=EmailField.widget(attrs={'size':5}))

On 6/19/07, cun heise <cunheise at hotmail.com> wrote:
>
> class ContactForm(forms.Form):
>        email = forms.EmailField(label = 'Your Email (replies will be sent
> to this
> address, make sure it is correct)', max_length = 200)
>        subject = forms.CharField(max_length = 200, widget =
> forms.HiddenInput)
>        content = forms.CharField(widget = forms.Textarea(attrs = {'rows':
> 5,
> 'cols': 45}))
>
> 现在我想控制render的emailfield的size
> turn
> 
> into
> 
> 我该如何做,找了半天也没有doc
> 看了一些文档说好像用boundfield,
> 不过又有一些说是widget,但是widget 不能控制emailfiled,不知道该如何是好。
>
> _________________________________________________________________
> 与联机的朋友进行交流,请使用  Live Messenger;
> http://get.live.com/messenger/overview
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese




-- 
http://codeplayer.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20070619/aba68276/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年06月19日 星期二 21:10

cun heise cunheise在hotmail.com
星期二 六月 19 21:10:13 HKT 2007

ºÃÏñÕâÑù²»ÐÐ


>From: "黄毅" <yi.codeplayer在gmail.com>
>Reply-To: python-chinese在lists.python.cn
>To: python-chinese在lists.python.cn
>Subject: Re: [python-chinese]newforms emailField 的问é¢?>Date: Tue, 19 
Jun 2007 20:22:09 +0800
>
>email = forms.EmailField(... , 
>widget=EmailField.widget(attrs={'size':5}))
>
>On 6/19/07, cun heise <cunheise在hotmail.com> wrote:
>>
>>class ContactForm(forms.Form):
>>        email = forms.EmailField(label = 'Your Email (replies will 
>>be sent
>>to this
>>address, make sure it is correct)', max_length = 200)
>>        subject = forms.CharField(max_length = 200, widget =
>>forms.HiddenInput)
>>        content = forms.CharField(widget = forms.Textarea(attrs = 
>>{'rows':
>>5,
>>'cols': 45}))
>>
>>现在我想控制render的emailfield的size
>>turn
>>
>>into
>>
>>我该如何做,找了半天也没有doc
>>看了一些文档说好像用boundfieldï¼?>>不过又有一些说是w
idget,但是widget 
>>不能控制emailfiled,不知道该如何是好ã€?>>
>>_________________________________________________________________
>>与联机的朋友进行交流,请使用  Live Messenger;
>>http://get.live.com/messenger/overview
>>
>>_______________________________________________
>>python-chinese
>>Post: send python-chinese在lists.python.cn
>>Subscribe: send subscribe to python-chinese-request在lists.python.cn
>>Unsubscribe: send unsubscribe to  
>>python-chinese-request在lists.python.cn
>>Detail Info: http://python.cn/mailman/listinfo/python-chinese
>
>
>
>
>--
>http://codeplayer.blogspot.com/


>_______________________________________________
>python-chinese
>Post: send python-chinese在lists.python.cn
>Subscribe: send subscribe to python-chinese-request在lists.python.cn
>Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
>Detail Info: http://python.cn/mailman/listinfo/python-chinese

_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà Live Messenger; 
http://get.live.com/messenger/overview 


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年06月19日 星期二 21:31

cun heise cunheise在hotmail.com
星期二 六月 19 21:31:38 HKT 2007

it's a bug, maybe i fix it
need modify the fields.py file which is locate 
/usr/lib/.../django/newforms/fields.py

add this line in the def __init__ function
and remember the indent is 4 spaces not tab or 2 spaces
after the change
i think maybe need remove the fields.pyc file which in the same directory


>From: "cun heise" <cunheise在hotmail.com>
>Reply-To: python-chinese在lists.python.cn
>To: python-chinese在lists.python.cn
>Subject: [python-chinese] newforms emailField µÄÎÊÌâ
>Date: Tue, 19 Jun 2007 10:47:32 +0000
>
>class ContactForm(forms.Form):
>	email = forms.EmailField(label = 'Your Email (replies will be sent to 
this
>address, make sure it is correct)', max_length = 200)
>	subject = forms.CharField(max_length = 200, widget = forms.HiddenInput)
>	content = forms.CharField(widget = forms.Textarea(attrs = {'rows': 5,
>'cols': 45}))
>
>现在我想控制render的emailfield的size
>turn
>
>into
>
>我该如何做,找了半天也没有doc
>看了一些文档说好像用boundfieldï¼?>不过又有一些说是widget
,但是widget 不能控制emailfiled,不知道该如何是好ã€?>
>_________________________________________________________________
>与联机的朋友进行交流,请使用  Live Messenger;
>http://get.live.com/messenger/overview
>
>_______________________________________________
>python-chinese
>Post: send python-chinese在lists.python.cn
>Subscribe: send subscribe to python-chinese-request在lists.python.cn
>Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
>Detail Info: http://python.cn/mailman/listinfo/python-chinese

_________________________________________________________________
ÓëÊÀ½ç¸÷µØµÄÅóÓѽøÐн»Á÷£¬Ãâ·ÑÏÂÔØ  Live Messenger; 
http://get.live.com/messenger/overview 


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2007年06月20日 星期三 03:02

风向标 vaneoooo在gmail.com
星期三 六月 20 03:02:13 HKT 2007

»òÐíÐèÒªSVN°æ±¾ÄØ£¿
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070620/ee70512e/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号