def build(self): self.platform=core_platform() self.setup() self.set_language('es_ES') self.root = MyScreenManager(transition=FadeTransition(),home_folder=self.user_data_dir) main_ctl.setScreenManager(self.root) if __monitor_time__: main_ctl.scheduleTicks() main_ctl.goto_first_view() debug=BooleanProperty(__coneptum_debug__) self.customer=__customer__ self.home_folder='' return self.root
__all__ = ('App', ) import os from inspect import getfile from os.path import dirname, join, exists, sep, expanduser from kivy.config import ConfigParser from kivy.base import runTouchApp, stopTouchApp from kivy.logger import Logger from kivy.event import EventDispatcher from kivy.lang import Builder from kivy.resources import resource_find from kivy.utils import platform as core_platform from kivy.uix.widget import Widget platform = core_platform() class App(EventDispatcher): ''' Application class, see module documentation for more information. :Events: `on_start`: Fired when the application is being started (before the :func:`~kivy.base.runTouchApp` call. `on_stop`: Fired when the application stops. `on_pause`: Fired when the application is paused by the OS. `on_resume`: Fired when the application is resumed from pause by the OS, beware,
from kivy.uix.gridlayout import GridLayout from kivy.uix.image import AsyncImage from kivy.uix.label import Label from kivy.uix.listview import ListItemButton, ListView from kivy.uix.modalview import ModalView from kivy.uix.popup import Popup from kivy.uix.scrollview import ScrollView from kivy.uix.settings import SettingItem, SettingSpacer, SettingsPanel from kivy.uix.slider import Slider from kivy.uix.switch import Switch from kivy.uix.tabbedpanel import TabbedPanel from kivy.uix.textinput import TextInput from kivy.uix.togglebutton import ToggleButton from kivy.uix.widget import Widget platform = core_platform() def hide_keyboard(*args, **kwargs): pass if platform == "android": import android from jnius import autoclass def hide_keyboard(*args, **kwargs): android.hide_keyboard() def open_url(url):