Kivy is a platform independent GUI tool in Python. As it can be run on Android, IOS, linux and Windows etc. It is basically used to develop the Android application, but it does not mean that it can not be used on Desktops applications.
The Bubble widget is a form of menu or a small popup where the menu options are stacked either vertically or horizontally. The Bubble contains an arrow pointing in the direction you choose.
To choose the direction in which arrow points use:
The orientation of the bubble is by default horizontally but you can change it by the command:
orientation = ‘vertical’
To add items to the bubble:
bubble = Bubble(orientation = ‘vertical’)
To remove items:
Basic Approach : 1) import kivy 2) import kivyApp 3) import Button 4) import Floatlayout(according to need) 5) import Bubble 6) import object property 7) Create Layout class: 8) Create App class 9) create .kv file (name same as the app class): 1) createBubble 10) return Layout/widget/Class(according to requirement) 11) Run an instance of the class
# Implementation of the Approach:
# .py code:
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.