如何在python中使用共享按钮来共享应用程序的链接和图像,例如youtube共享按钮

时间:2020-10-03 17:07:06

标签: python-3.7 kivy-language kivymd share-button

我想在我的共享按钮中共享一个应用程序主屏幕的图片,并带有一个链接,该链接可以从Playstore或应用商店中以kivy python下载该应用程序

这是我的代码的共享类

class Share(FloatLayout):
    data = {
        "facebook": "Facebook",
        "whatsapp": "WhatsApp",
        "instagram": "Instagram",
        "twitter": "Twitter",
    }

    def callback(self, instance):
        print('Hello')
        print(instance.icon)
        if instance.icon == "facebook":
            self.share('heelo')
        elif instance.icon == 'whatsapp':
            print('Share it on WhatsApp')
        elif instance.icon == 'twitter':
            print('Share it on Twitter')
        else:
            print('Share it on Instagram')

0 个答案:

没有答案