Kivy - General fixes/improvements #2281
@ -16,6 +16,7 @@ from kivy.clock import Clock
|
|||||||
from kivy.lang import Builder
|
from kivy.lang import Builder
|
||||||
from kivy.core.window import Window
|
from kivy.core.window import Window
|
||||||
from kivy.uix.boxlayout import BoxLayout
|
from kivy.uix.boxlayout import BoxLayout
|
||||||
|
from kivy.core.clipboard import Clipboard
|
||||||
|
|
||||||
from kivymd.app import MDApp
|
from kivymd.app import MDApp
|
||||||
from kivymd.uix.label import MDLabel
|
from kivymd.uix.label import MDLabel
|
||||||
@ -480,6 +481,11 @@ class NavigateApp(MDApp):
|
|||||||
"""initiate_purchase module"""
|
"""initiate_purchase module"""
|
||||||
logger.debug("Purchasing %s through %s", self.product_id, method_name)
|
logger.debug("Purchasing %s through %s", self.product_id, method_name)
|
||||||
|
|
||||||
|
def copy_composer_text(self, text):
|
||||||
|
"""Copy text to clipboard"""
|
||||||
|
Clipboard.copy(text)
|
||||||
|
toast("Copied to clipboard")
|
||||||
|
|
||||||
|
|
||||||
class PaymentMethodLayout(BoxLayout):
|
class PaymentMethodLayout(BoxLayout):
|
||||||
"""PaymentMethodLayout class for kivy Ui"""
|
"""PaymentMethodLayout class for kivy Ui"""
|
||||||
|
Reference in New Issue
Block a user