Giter VIP home page Giter VIP logo

tips's Introduction

Tips Calculator

This is a simple application for calculating tip given a certain bill total and tip percentage.

Time spent: 6 hours spent in total

Completed user stories:

  • Required: User can enter a bill amount and the application will determine a total amount the bill will cost after specifying a tip percentage (18% by default)

  • Optional: Added a startup image, app icons, an initial animation and changed the layout/font/fontsizes/colors of the app.

Walkthrough of all user stories:

Tabber|250

GIF created with LiceCap
Used [Meng To's Spring Library] (https://github.com/MengTo/Spring) for initial Animation

tips's People

Contributors

fguzman avatar

Watchers

 avatar

tips's Issues

TypeError: run() missing 1 required positional argument: 'self'

Hi, just started my first super simple application using kivy on python and that error occured.

Traceback (most recent call last):
  File "C:/Users/ahmed/PycharmProjects/My 1st mobile app using kivy module/new app.py", line 36, in <module>
    bigApp.run()
TypeError: run() missing 1 required positional argument: 'self'

The code:-

import kivy
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.gridlayout import GridLayout
from kivy.uix.textinput import TextInput
from kivy.uix.button import Button


class my_app(GridLayout):
    def __init__(self, **kwargs):
        super(my_app, self).__init__()
        self.cols = 2
        # y3ny 3ayz l app ykon mtkwn mn 2 columns bs

        self.add_widget(Label(text="Enter your name"))
        self.name = TextInput()
        self.add_widget(self.name)

        self.add_widget(Label(text="Enter your age"))
        self.age = TextInput()
        self.add_widget(self.age)

        self.add_widget(Label(text="Enter your marks"))
        self.marks = TextInput()
        self.add_widget(self.marks)

        self.add_widget((Button(text='hello world')))


class bigApp(App):
    def build(self):
        return my_app


if __name__ == '__main__':
        bigApp.run()
else:
    print("Sorry, a crash has occured")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.