<commit_before>#-*- coding: utf-8 -*-

import kivy
import kivymd
kivy.require('1.10.0')
from kivy.lang import Builder

from kivy.app import App
from kivy.uix.gridlayout import GridLayout
from kivy.uix.boxlayout import BoxLayout
from kivy.core.window import Window
from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition, NoTransition
#from kivy.graphics import BorderImage

#from kivy.uix.image import AsyncImage
#from kivy.uix.label import Label
from kivy.uix.scrollview import ScrollView
# from kivymd.grid import SmartTile
# from kivymd.theming import ThemeManager
from kivy.properties import ObjectProperty
Window.clearcolor = (1,1,1,1)
# Window.size = (720, 1280)

Imports = Builder.load_string('''
#:import SmartTile kivymd.grid.SmartTile
#:import MDBottomNavigationItem kivymd.tabs.MDBottomNavigationItem
''')
#Определение меню и action bar
menu_head = '''
<Menu>:
    name: 'Menu'
    BoxLayout:
        orientation: 'vertical'
        ActionBar:
            background_color: (0, 5, 0, 0.8)
            pos_hint: {'top':1}
            ActionView:
                use_sperator: True
                ActionPrevious: 
                    app_icon: 'Images/panda.png'
                    title: 'Caffe Panda'
                    with_previous: False
                ActionOverflow:
                ActionButton:
                    icon: 'ico.png'
                    on_release: root.manager.current = 'Cart'
'''
#Параметры кнопок
menu_buttons_head = '''
        ScrollView:
            GridLayout:
                orientation: 'vertical'
                cols: 2
                size_hint_y: None
                height: 1300
                padding: 7
                spacing: 7
'''
#Сами кнопки P.S. Кнопки прорисовываются в классе menu
menu_buttons = ''
#Меню суши
sushi_head = '''
<Sushi>:
    name: 'Sushi'
    BoxLayout:
        orientation: 'vertical'
        ActionBar:
            background_color: (0, 5, 0, 0.8)
            pos_hint: {'top':1}
            ActionView:
                use_sperator: True
                ActionPrevious: 
                    app_icon: 'Images/panda.png'
                    title: 'Caffe Panda'
                    with_previous: True
                    on_release: root.manager.current = 'Menu'
                ActionOverflow:
                ActionButton:
                    icon: 'ico.png'
                    on_release: root.manager.current = 'Cart'
'''
#Настройки кнопок
sushi_buttons_head = '''
        ScrollView:
            GridLayout:
                orientation: 'vertical'
                cols: 3
                size_hint_y: None
                height: 2250
                padding: 0
                spacing: 0
'''
sushi_buttons = ''
Cart = Builder.load_string('''
<Cart>:
    name: 'Cart'
    BoxLayout:
        orientation: 'vertical'
        ActionBar:
            background_color: (0, 5, 0, 0.8)
            pos_hint: {'top':1}
            ActionView:
                use_sperator: True
                ActionPrevious: 
                    app_icon: 'Images/panda.png'
                    title: 'Caffe Panda'
                    with_previous: True
                    on_release: root.manager.current = 'Menu'
                ActionOverflow:
                ActionButton:
                    icon: 'ico.png'
        
        ScrollView:
            BoxLayout:
                Label:
                    text: 'Ваша корзина пуста'
                    color: (0, 0, 0, 0.5)
                    font_size: 30
                    font_name: '10469'
''')
chicago_roll_head = '''
<Chicago_Roll>:
    name: 'Chicago_Roll'
    BoxLayout:
        orientation: 'vertical'
        ActionBar:
            background_color: (0, 5, 0, 0.8)
            pos_hint: {'top':1}
            ActionView:
                use_sperator: True
                ActionPrevious:
                    app_icon: 'Images/panda.png'
                    title: 'Caffe Panda'
                    with_previous: True
                    on_release: root.manager.current = 'Sushi'
                ActionOverflow:
                ActionButton:
                    icon: 'ico.png'
                    on_release: root.manager.current = 'Cart'
'''
chicago_roll_info = '''
        BoxLayout:
            size_hint_y: 1
            size_hint_x: 1
            height: 1000
            orientation: 'vertical'
            SmartTileWithLabel:
                allow_stretch: False
                mipmap: False
                box_color: (1, 1, 1, 0.5)
                source: 'Images/Sushi/CicagoRoll.jpg'
                text: 'Добавить в корзину'
                on_release: root.manager.current = 'Chicago_Roll'
        ScrollView:
            BoxLayout:
                orientation: 'vertical'
                size_hint_y: None
                height: 300
'''
chicago_roll_label = ''

Manager = Builder.load_string('''
<Manager>:
    id: screen_manager

    screen_menu: Menu
    screen_sushi: Sushi
    screen_cart: Cart
    screen_chicago_roll: Chicago_Roll

    Menu:
        id: Menu
        name: 'Menu'
        manager: screen_manager

    Sushi:
        id: Sushi
        name: 'Sushi'
        manager: screen_manager
    
    Cart:
        id: Cart
        name: 'Cart'
        manager: screen_manager

    Chicago_Roll:
        id: Chicago_Roll
        name: 'Chicago_Roll'
        manager: screen_manager
        
''')

class Menu(ScrollView, Screen):
    menu_buttons = ''
    img_list_menu = [
        {
            "img": 'Images/Menu/Candies.jpg',
            "lnk": 'Sushi'
        },
        {
            'img': 'Images/Menu/Garneir.jpg', 
            'lnk': 'Sushi'
        }, 
        {
            'img': 'Images/Menu/Homosakki.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Hot.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/MoreRolls.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Nigiri.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Packs.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Pasta.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Pizza.jpg',
            'lnk': 'Sushi' 
        },
        {
            'img': 'Images/Menu/Rolls.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Salades.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Soup.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Sushi.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Thakuski.jpg',
            'lnk': 'Sushi'
        },
    ]
    templ = '''
                SmartTileWithLabel:
                    allow_stretch: True
                    mipmap: False
                    box_color: (1, 1, 1, 0)
                    source: "{}"
                    on_release: root.manager.current = '{}'
    '''
    for i in range(len(img_list_menu)):
        menu_buttons += templ.format(img_list_menu[i]['img'], img_list_menu[i]['lnk'])
    mm = menu_head + menu_buttons_head + menu_buttons
    Menu = Builder.load_string(mm)

class Sushi(ScrollView, Screen):
    sushi_buttons = ''
    img_list_sushi = [
        {
            'img': 'Images/Sushi/CicagoRoll.jpg',
            'txt': 'Чикаго Ролл',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/LavaSLososem.jpg',
            'txt': 'Лава с лососем',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/LavaSKrabom.jpg',
            'txt': 'Лава с крабом',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/LavaSKrevetkoi.jpg',
            'txt': 'Лава с криветкой',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/LavaSUgrem.jpg',
            'txt': 'Лава с угрём',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/RollOvosh.jpg',
            'txt': 'Ролл в темпурной крошке(Овощной)',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/RollLosos.jpg',
            'txt': 'Ролл в темпурной крошке с лососем',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/RollChicken.jpg',
            'txt': 'Ролл в темпурной крошке с курой',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/HanMaki.jpg',
            'txt': 'Хан маки',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/FreshRoll.jpg',
            'txt': '<NAME>',
            'txt': 'Филадельфия де люкс',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/SamuraiMaki.jpg',
            'txt': '<NAME>',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/SakuraMaki.jpg',
            'txt': '<NAME>',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/PandaMaki.jpg',
            'txt': 'Панда маки',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/MunhenRoll.jpg',
            'txt': '<NAME>',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/MonteKarlo.jpg',
            'txt': '<NAME>',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/MaiamiMaki.jpg',
            'txt': '<NAME>',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/LeonaRoll.jpg',
            'txt': '<NAME>',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/LiteRoll.jpg',
            'txt': 'Лайт ролл',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/KanadskiiRoyalo.jpg',
            'txt': 'Канадский тобияко роял',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/KanadaSKrevetkoi.jpg',
            'txt': 'Канада с креветкой',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/CaliforniaMaki.jpg',
            'txt': 'Калифорния маки',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/GonkongRoll.jpg',
            'txt': 'Гонконг ролл',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/GeishaMaki.jpg',
            'txt': 'Гейша маки',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/BengalskiRoll.jpg',
            'txt': 'Бенгальский ролл',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/VeneciaRoll.jpg',
            'txt': 'Венеция ролл',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
    ]
    templ = '''
                SmartTileWithLabel:
                    allow_stretch: True
                    mipmap: False
                    box_color: (1, 1, 1, 0.5)
                    source: "{}"
                    text: '{}' + '{}'
                    on_release: root.manager.current = '{}'
    '''
    for i in range(len(img_list_sushi)):
        sushi_buttons += templ.format(img_list_sushi[i]['img'],
                                      img_list_sushi[i]['txt'],
                                      img_list_sushi[i]['price'],
                                      img_list_sushi[i]['lnk'])
    ss = sushi_head + sushi_buttons_head + sushi_buttons
    Sushi = Builder.load_string(ss)

class Chicago_Roll(ScrollView, Screen):
    chicago_roll_label = ''
    list_chicago = [
        {
            'txt': '<NAME>',
            'size': 35,
            'col': (0, 0, 0, 0.5),
            'font': 'Roboto'
        },
        {
            'txt': '260 руб.',
            'size': 30,
            'col': (0, 0, 0, 0.5),
            'font': 'Roboto'
        },
        {
            'txt': 'бекон,',
            'size': 20,
            'col': (0, 0, 0, 0.5),
            'font': 'Roboto'
        },
        {
            'txt': 'лосось жаренный,',
            'size': 20,
            'col': (0, 0, 0, 0.5),
            'font': 'Roboto'
        },
        {
            'txt': 'сливочный сыр,',
            'size': 20,
            'col': (0, 0, 0, 0.5),
            'font': 'Roboto'
        },
        {
            'txt': 'огурец.',
            'size': 20,
            'col': (0, 0, 0, 0.5),
            'font': 'Roboto'
        },
        {
            'txt': '8шт./290гр.',
            'size': 20,
            'col': (0, 0, 0, 0.5),
            'font': 'Roboto'
        },
    ]
    templ = '''
                Label:
                    text: '{}'
                    font_size: {}
                    color: {}
                    font_name: '{}'
    '''
    for i in range(len(list_chicago)):
        chicago_roll_label += templ.format(list_chicago[i]['txt'],
                                           list_chicago[i]['size'],
                                           list_chicago[i]['col'],
                                           list_chicago[i]['font'])
    cr = chicago_roll_head + chicago_roll_info + chicago_roll_label
    Chicago_Roll = Builder.load_string(cr) 
class Cart(ScrollView, Screen):
    pass

class Manager(ScreenManager):
    screen_menu = ObjectProperty(None)
    screen_sushi = ObjectProperty(None)
    screen_cart = ObjectProperty(None)
    screen_chicago_roll = ObjectProperty(None)

class PandaApp(App):

    def build(self):
        self.icon = 'Images/panda.png'
        m = Manager(transition=NoTransition())
        return m

if __name__ == '__main__':
    PandaApp().run() 
<commit_msg>delete modules<commit_after>#-*- coding: utf-8 -*-

import kivy
import kivymd
kivy.require('1.10.0')
from kivy.lang import Builder

from kivy.app import App
from kivy.uix.gridlayout import GridLayout
from kivy.uix.boxlayout import BoxLayout
from kivy.core.window import Window
from kivy.uix.screenmanager import ScreenManager, Screen, FadeTransition, NoTransition
from kivy.uix.scrollview import ScrollView
from kivy.properties import ObjectProperty
Window.clearcolor = (1,1,1,1)
# Window.size = (720, 1280)

Imports = Builder.load_string('''
#:import SmartTile kivymd.grid.SmartTile
#:import MDBottomNavigationItem kivymd.tabs.MDBottomNavigationItem
''')
#Определение меню и action bar
menu_head = '''
<Menu>:
    name: 'Menu'
    BoxLayout:
        orientation: 'vertical'
        ActionBar:
            background_color: (0, 5, 0, 0.8)
            pos_hint: {'top':1}
            ActionView:
                use_sperator: True
                ActionPrevious: 
                    app_icon: 'Images/panda.png'
                    title: 'Caffe Panda'
                    with_previous: False
                ActionOverflow:
                ActionButton:
                    icon: 'ico.png'
                    on_release: root.manager.current = 'Cart'
'''
#Параметры кнопок
menu_buttons_head = '''
        ScrollView:
            GridLayout:
                orientation: 'vertical'
                cols: 2
                size_hint_y: None
                height: 1300
                padding: 7
                spacing: 7
'''
#Сами кнопки P.S. Кнопки прорисовываются в классе menu
menu_buttons = ''
#Меню суши
sushi_head = '''
<Sushi>:
    name: 'Sushi'
    BoxLayout:
        orientation: 'vertical'
        ActionBar:
            background_color: (0, 5, 0, 0.8)
            pos_hint: {'top':1}
            ActionView:
                use_sperator: True
                ActionPrevious: 
                    app_icon: 'Images/panda.png'
                    title: 'Caffe Panda'
                    with_previous: True
                    on_release: root.manager.current = 'Menu'
                ActionOverflow:
                ActionButton:
                    icon: 'ico.png'
                    on_release: root.manager.current = 'Cart'
'''
#Настройки кнопок
sushi_buttons_head = '''
        ScrollView:
            GridLayout:
                orientation: 'vertical'
                cols: 3
                size_hint_y: None
                height: 2250
                padding: 0
                spacing: 0
'''
sushi_buttons = ''
Cart = Builder.load_string('''
<Cart>:
    name: 'Cart'
    BoxLayout:
        orientation: 'vertical'
        ActionBar:
            background_color: (0, 5, 0, 0.8)
            pos_hint: {'top':1}
            ActionView:
                use_sperator: True
                ActionPrevious: 
                    app_icon: 'Images/panda.png'
                    title: 'Caffe Panda'
                    with_previous: True
                    on_release: root.manager.current = 'Menu'
                ActionOverflow:
                ActionButton:
                    icon: 'ico.png'
        
        ScrollView:
            BoxLayout:
                Label:
                    text: 'Ваша корзина пуста'
                    color: (0, 0, 0, 0.5)
                    font_size: 30
                    font_name: '10469'
''')
chicago_roll_head = '''
<Chicago_Roll>:
    name: 'Chicago_Roll'
    BoxLayout:
        orientation: 'vertical'
        ActionBar:
            background_color: (0, 5, 0, 0.8)
            pos_hint: {'top':1}
            ActionView:
                use_sperator: True
                ActionPrevious:
                    app_icon: 'Images/panda.png'
                    title: 'Caffe Panda'
                    with_previous: True
                    on_release: root.manager.current = 'Sushi'
                ActionOverflow:
                ActionButton:
                    icon: 'ico.png'
                    on_release: root.manager.current = 'Cart'
'''
chicago_roll_info = '''
        BoxLayout:
            size_hint_y: 1
            size_hint_x: 1
            height: 1000
            orientation: 'vertical'
            SmartTileWithLabel:
                allow_stretch: False
                mipmap: False
                box_color: (1, 1, 1, 0.5)
                source: 'Images/Sushi/CicagoRoll.jpg'
                text: 'Добавить в корзину'
                on_release: root.manager.current = 'Chicago_Roll'
        ScrollView:
            BoxLayout:
                orientation: 'vertical'
                size_hint_y: None
                height: 300
'''
chicago_roll_label = ''

Manager = Builder.load_string('''
<Manager>:
    id: screen_manager

    screen_menu: Menu
    screen_sushi: Sushi
    screen_cart: Cart
    screen_chicago_roll: Chicago_Roll

    Menu:
        id: Menu
        name: 'Menu'
        manager: screen_manager

    Sushi:
        id: Sushi
        name: 'Sushi'
        manager: screen_manager
    
    Cart:
        id: Cart
        name: 'Cart'
        manager: screen_manager

    Chicago_Roll:
        id: Chicago_Roll
        name: 'Chicago_Roll'
        manager: screen_manager
        
''')

class Menu(ScrollView, Screen):
    menu_buttons = ''
    img_list_menu = [
        {
            "img": 'Images/Menu/Candies.jpg',
            "lnk": 'Sushi'
        },
        {
            'img': 'Images/Menu/Garneir.jpg', 
            'lnk': 'Sushi'
        }, 
        {
            'img': 'Images/Menu/Homosakki.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Hot.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/MoreRolls.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Nigiri.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Packs.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Pasta.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Pizza.jpg',
            'lnk': 'Sushi' 
        },
        {
            'img': 'Images/Menu/Rolls.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Salades.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Soup.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Sushi.jpg',
            'lnk': 'Sushi'
        },
        {
            'img': 'Images/Menu/Thakuski.jpg',
            'lnk': 'Sushi'
        },
    ]
    templ = '''
                SmartTileWithLabel:
                    allow_stretch: True
                    mipmap: False
                    box_color: (1, 1, 1, 0)
                    source: "{}"
                    on_release: root.manager.current = '{}'
    '''
    for i in range(len(img_list_menu)):
        menu_buttons += templ.format(img_list_menu[i]['img'], img_list_menu[i]['lnk'])
    mm = menu_head + menu_buttons_head + menu_buttons
    Menu = Builder.load_string(mm)

class Sushi(ScrollView, Screen):
    sushi_buttons = ''
    img_list_sushi = [
        {
            'img': 'Images/Sushi/CicagoRoll.jpg',
            'txt': '<NAME>',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/LavaSLososem.jpg',
            'txt': 'Лава с лососем',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/LavaSKrabom.jpg',
            'txt': 'Лава с крабом',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/LavaSKrevetkoi.jpg',
            'txt': 'Лава с криветкой',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/LavaSUgrem.jpg',
            'txt': 'Лава с угрём',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/RollOvosh.jpg',
            'txt': 'Ролл в темпурной крошке(Овощной)',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/RollLosos.jpg',
            'txt': 'Ролл в темпурной крошке с лососем',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/RollChicken.jpg',
            'txt': 'Ролл в темпурной крошке с курой',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/HanMaki.jpg',
            'txt': '<NAME>',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/FreshRoll.jpg',
            'txt': '<NAME>',
            'txt': 'Филадельфия де люкс',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/SamuraiMaki.jpg',
            'txt': '<NAME>',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/SakuraMaki.jpg',
            'txt': '<NAME>',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/PandaMaki.jpg',
            'txt': 'Панда маки',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/MunhenRoll.jpg',
            'txt': '<NAME>',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/MonteKarlo.jpg',
            'txt': '<NAME>',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/MaiamiMaki.jpg',
            'txt': 'Майами маки',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/LeonaRoll.jpg',
            'txt': 'Леона ролл',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/LiteRoll.jpg',
            'txt': 'Лайт ролл',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/KanadskiiRoyalo.jpg',
            'txt': 'Канадский тобияко роял',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/KanadaSKrevetkoi.jpg',
            'txt': 'Канада с креветкой',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/CaliforniaMaki.jpg',
            'txt': 'Калифорния маки',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/GonkongRoll.jpg',
            'txt': 'Гонконг ролл',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/GeishaMaki.jpg',
            'txt': 'Гейша маки',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/BengalskiRoll.jpg',
            'txt': 'Бенгальский ролл',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
        {
            'img': 'Images/Sushi/VeneciaRoll.jpg',
            'txt': '<NAME>',
            'price': ' 260руб',
            'lnk': 'Chicago_Roll'
        },
    ]
    templ = '''
                SmartTileWithLabel:
                    allow_stretch: True
                    mipmap: False
                    box_color: (1, 1, 1, 0.5)
                    source: "{}"
                    text: '{}' + '{}'
                    on_release: root.manager.current = '{}'
    '''
    for i in range(len(img_list_sushi)):
        sushi_buttons += templ.format(img_list_sushi[i]['img'],
                                      img_list_sushi[i]['txt'],
                                      img_list_sushi[i]['price'],
                                      img_list_sushi[i]['lnk'])
    ss = sushi_head + sushi_buttons_head + sushi_buttons
    Sushi = Builder.load_string(ss)

class Chicago_Roll(ScrollView, Screen):
    chicago_roll_label = ''
    list_chicago = [
        {
            'txt': '<NAME>',
            'size': 35,
            'col': (0, 0, 0, 0.5),
            'font': 'Roboto'
        },
        {
            'txt': '260 руб.',
            'size': 30,
            'col': (0, 0, 0, 0.5),
            'font': 'Roboto'
        },
        {
            'txt': 'бекон,',
            'size': 20,
            'col': (0, 0, 0, 0.5),
            'font': 'Roboto'
        },
        {
            'txt': 'лосось жаренный,',
            'size': 20,
            'col': (0, 0, 0, 0.5),
            'font': 'Roboto'
        },
        {
            'txt': 'сливочный сыр,',
            'size': 20,
            'col': (0, 0, 0, 0.5),
            'font': 'Roboto'
        },
        {
            'txt': 'огурец.',
            'size': 20,
            'col': (0, 0, 0, 0.5),
            'font': 'Roboto'
        },
        {
            'txt': '8шт./290гр.',
            'size': 20,
            'col': (0, 0, 0, 0.5),
            'font': 'Roboto'
        },
    ]
    templ = '''
                Label:
                    text: '{}'
                    font_size: {}
                    color: {}
                    font_name: '{}'
    '''
    for i in range(len(list_chicago)):
        chicago_roll_label += templ.format(list_chicago[i]['txt'],
                                           list_chicago[i]['size'],
                                           list_chicago[i]['col'],
                                           list_chicago[i]['font'])
    cr = chicago_roll_head + chicago_roll_info + chicago_roll_label
    Chicago_Roll = Builder.load_string(cr) 
class Cart(ScrollView, Screen):
    pass

class Manager(ScreenManager):
    screen_menu = ObjectProperty(None)
    screen_sushi = ObjectProperty(None)
    screen_cart = ObjectProperty(None)
    screen_chicago_roll = ObjectProperty(None)

class PandaApp(App):

    def build(self):
        self.icon = 'Images/panda.png'
        m = Manager(transition=NoTransition())
        return m

if __name__ == '__main__':
    PandaApp().run() 

{'fraction_non_alphanumeric': 0.13417161807378747, 'fraction_numerical': 0.015199668370871909, 'mean_word_length': 1.2771179107999686, 'pattern_counts': {'":': 4, '<': 30, '<?xml version=': 0, '>': 30, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6209644', 'n_tokens_mistral': 9703, 'n_tokens_neox': 9059, 'n_words': 1692}