My first independent python program!

View this thread on: d.buzz | hive.blog | peakd.com | ecency.com
·@n1hal·
0.000 HBD
My first independent python program!
Hello Steemians! 
As I had informed you all yesterday that I am learning python, I have made progress! 
I started off with patterns and it was quite easy! 

![](https://d1vof77qrk4l5q.cloudfront.net/img/993688cdb8327933ac4678f6b9897cc87b3c1e99.jpg)

I am doing a lot of pattern programs now and it is really fun. I had problems with the for loop because it is very much different in Java. 

**Help Needed**
I had made a UI using Java but I have no idea on how to do that in python. 
I want to make this kind of UI using Python. 

![](https://d1vof77qrk4l5q.cloudfront.net/img/75dbed83e2535ed1f7ec7c3078485989fdc79c15.jpg)

The program Trial when it is Run. It opens up a JFrame like this:

![](https://d1vof77qrk4l5q.cloudfront.net/img/a4fb3c35f881b1c213a5a27bccb3a8a16449251d.jpg)

When I tap Appetizers for example, something like this opens up:

![](https://d1vof77qrk4l5q.cloudfront.net/img/a5ea45967f48b04b710b9152c79f2a8e1e295c8d.jpg)

On tapping Deep fried rice balls,  this opens up:

![](https://d1vof77qrk4l5q.cloudfront.net/img/23c52a5566d5d260cf942c5ec7c075ebea60b1c3.jpg)

And then I can add quantity using button or can directly type the quantity in the TextField. It stores the quantity values into arrays corresponding to dish names and when I print the bill it should be printing using the array contents. This hasn't been a perfect success on Java till now. Please do help me if you can. 

![](https://d1vof77qrk4l5q.cloudfront.net/img/182a209972dfc692ac3d72c7b14058bab3436303.gif)

With regards, 
@n1hal

Posted using [Partiko Android](https://steemit.com/@partiko-android)
👍 , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,