How to make size of Label very small in terms of WIDTH and HEIGHT. Python and Kivy -


lets have gridlayout 2 columns. add this:

gridlayout = gridlayout(cols = 2, orientation = "horizontal") button = button(text = "hello") label = label(text = "world", size_hint = (.1,.1)) gridlayout.add_widget(button) gridlayout.add_widget(label) 

i need 2 columns, pretty want button have of screen , label small placeholder.

i have tried doing size_hint's on both , not able change size of it.

i using python 2.7.x , kivy 1.8 +

thanks.

this code seems work me, perhaps need use width/height directly, you'll need set size_hint = (none, none). might interested in texture_size.

just note, if use kivy 1.8 or that's below latest stable version (now 1.9.1), it's best time update kivy asap.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -