adityabhawsingka / expensetracker Goto Github PK
View Code? Open in Web Editor NEWAn expense tracker created using Python, Kivy and KivyMD.
License: Other
An expense tracker created using Python, Kivy and KivyMD.
License: Other
Nice app! I have a little issue with numbers. Simple additions shows floats limits quickly: 64.38+19.77=84.14999999999 instead of 84.15. It would be more exact using decimal data type.
How to set image size as per widget size?
`
from kivymd.app import MDApp
from kivy.lang import Builder
from kivy.properties import StringProperty
from kivymd.uix.imagelist import SmartTileWithLabel
from random import sample, choice
from string import ascii_lowercase
from kivy.uix.screenmanager import Screen
sample_images = [
"https://cdn.neemo.com.br/uploads/settings_webdelivery/logo/5591/No-Image.jpg",
"https://static.wixstatic.com/media/894d3e_5b35b4311510410fbe9403dc85f46845~mv2.jpg/v1/fill/w_1000,h_563,al_c,q_90,usm_0.66_1.00_0.01/894d3e_5b35b4311510410fbe9403dc85f46845~mv2.jpg",
"https://www.google.com/url?sa=i&url=https%3A%2F%2Fimagensemoldes.com.br%2Fcoragem-o-cao-covarde-vetorizado-03%2F&psig=AOvVaw1cN9wHzJQt8oWrWQJJgTmZ&ust=1647956068777000&source=images&cd=vfe&ved=0CAsQjRxqFwoTCMCG-_Wo1_YCFQAAAAAdAAAAABAP",
"https://upload.wikimedia.org/wikipedia/commons/thumb/a/ac/No_image_available.svg/1024px-No_image_available.svg.png",
]
KV = '''
ScreenRecycleView:
name: 'recycle_view'
viewclass: 'ImageCard'
RecycleView:
id: rv
viewclass: "ImageCard"
RecycleGridLayout:
cols: 2
row_default_height: (self.width - self.cols*self.spacing[0]) / self.cols
padding: dp(4), dp(4)
spacing: dp(4)
size_hint_y: None
height: self.minimum_height
default_size_hint: 1, None
#default_size: None, dp(500)
'''
class ImageCard(SmartTileWithLabel):
text = StringProperty()
source = StringProperty()
class ScreenRecycleView(Screen):
def on_kv_post(self, base_widget):
self.ids.rv.data = [
{
'text': ''.join(sample(ascii_lowercase, 6)),
'source': choice(sample_images)
}
for x in range(50)
]
class MyApp(MDApp):
def build(self):
root = Builder.load_string(KV)
return root
MyApp().run()
`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.