Hi,
I guess I don't understand the "borderimage" info. The doc's
suggest that I can change the color in a similar manner that happens
in CSS.
This is how I would do it in CSS:
{
border-style:solid;
border-color:#ff0000 #0000ff;
}
But I don't understand how to apply it to a border for a bubble.
Can some kind sole help out with an example.
Thanks in advance,
Johnf
below is some simple code (from the web).
from
kivy.app import App
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.button import Button
from kivy.uix.bubble import Bubble
from kivy.uix.bubble import BubbleButton
class MyBubbleApp(App):
def build(self):
root= GridLayout()
layout = FloatLayout(orientation='horizontal',
size=(150,100), size_hint=(None, None))
my_btn=Button(text='Press to view
bubble',pos=(300,300),on_press=show_bubble)
layout.add_widget(my_btn)
root.add_widget(layout)
return root
def show_bubble(self,*args):
my_bubble= Bubble(orientation = 'horizontal',pos=(160,400))
my_bubble.padding = [10,10,10,10]
my_bubble.width=240
#Customizing my bubble
my_bubble.background_color =(250, 69, 0, 1)
my_bubble.border = [20,20, 20, 20]
my_bubble.arrow_pos= 'top_mid'
my_bub_btn1= BubbleButton(text='NEW',size_hint=(None,
None),size=(40, 50))
my_bub_btn2= BubbleButton(text='OR',size_hint=(None,
None),size=(20, 50))
my_bub_btn3= BubbleButton(text='EXISTING
CUSTOMERS',size_hint=(None, None),size=(160, 50))
##Add items to bubble
my_bubble.add_widget(my_bub_btn1)
my_bubble.add_widget(my_bub_btn2)
my_bubble.add_widget(my_bub_btn3)
self.add_widget(my_bubble)
if __name__ == '__main__':
MyBubbleApp().run()