Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #96616

kivy editable multicolumn list

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail
From Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt>
Newsgroups comp.lang.python
Subject kivy editable multicolumn list
Date Tue, 15 Sep 2015 03:31:49 +0100
Organization Aioe.org NNTP Server
Lines 26
Message-ID <mt7vuk$fq$1@speranza.aioe.org> (permalink)
NNTP-Posting-Host rpgRlhg9tMo1Vs7b/IQ9OA.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
X-Notice Filtered by postfilter v. 0.8.2
X-Mozilla-News-Host news://nntp.aioe.org:119
X-Enigmail-Draft-Status N1110
Xref csiph.com comp.lang.python:96616

Show key headers only | View raw


Hi all.
Not sure if this is the place to ask about kivy ...
I apologize if not.

I am playing with the example here
https://gist.github.com/geojeff/4442405

Now I would like to change the background color the editable field.

So I added
	def __init__(self,**kwargs):
		super(EditableLabel,self).__init__(**kwargs)
		with self.canvas.before:
			Color(0,1,0)
			Rectangle(pos=self.pos,size=self.size)
			print(self.pos,self.size)

to class EditableLabel.

But when entering __init__ self.pos and self.size do not have the
correct pos/size for the EditableLabel.

How can I fix this? Please no kv solutions. I need dynamic change it in
a real example.

Thanks for any help.

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

kivy editable multicolumn list Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2015-09-15 03:31 +0100
  RE: kivy editable multicolumn list David Aldrich <David.Aldrich@EMEA.NEC.COM> - 2015-09-15 07:44 +0000
    Re: kivy editable multicolumn list Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2015-09-17 02:02 +0100
  Re: kivy editable multicolumn list Laura Creighton <lac@openend.se> - 2015-09-15 12:42 +0200
    Re: kivy editable multicolumn list Paulo da Silva <p_s_d_a_s_i_l_v_a_ns@netcabo.pt> - 2015-09-17 02:17 +0100

csiph-web