"Buildozer Packaging Practical Guide" actual packaging qrcode

Actual packaging qrcode

In this section, the author will write a simple application developed with kivy+qrcode, and demonstrate how to package it into an apk file.

Apk file download address:

see end of article

Version Information:

buildozer==1.4.0

frustrated==2.1.0

qrcode==7.3.1

Packaging system:

Ubuntu 22.04

Before packaging, we need to run the code to ensure that no errors are reported.

The main.py code is as follows:

import qrcode
from kivy.app import App
from kivy.uix.image import Image
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
 
 
class RootWidget(BoxLayout):
    def __init__(self):
        super(RootWidget, self).__init__()
 
        self.pic = Image()
        self.button = Button(text="Show Picture")
        self.button.bind(on_press=self.show_pic)
 
        self.orientation = "vertical"
        self.add_widget(self.pic)
        self.add_widg

Guess you like

Origin blog.csdn.net/La_vie_est_belle/article/details/128761773