kivymd

KivyMD How to change MDToolbar title size and font?

为君一笑 提交于 2021-02-11 06:48:23
问题 Im trying to learn KivyMD tools. So i created MDToolBar and it's title changes after some button clicks. Im trying to optimize it's text_size but can't do it.I already tried font_type:'H1' , font_size: '8sp' . Also i want to change it's font if its possible. Can anyone help me about that. Im sharing minimal code below: from kivy.lang import Builder from kivy.uix.screenmanager import Screen,ScreenManager kv = Builder.load_string(""" <SM>: P1: <P1>: BoxLayout: orientation: 'vertical' MDToolbar:

Using arabic_reshaper and bidi.algorithm in kivymd

狂风中的少年 提交于 2021-02-10 15:41:05
问题 I am going to make a application with kivymd, which contains Arabic and Persian texts. According to my searches, to do this, you should use arabic_reshaper and bidi.algorithm and also use a font that supports Persian and Arabic languages. As a result, I was able to write the code like this, and it supports both Persian and Arabic text well. import kivy.app import kivy.uix.label import arabic_reshaper import bidi.algorithm class TestApp(kivy.app.App): def build(self): bidi_text = bidi

Using arabic_reshaper and bidi.algorithm in kivymd

为君一笑 提交于 2021-02-10 15:40:14
问题 I am going to make a application with kivymd, which contains Arabic and Persian texts. According to my searches, to do this, you should use arabic_reshaper and bidi.algorithm and also use a font that supports Persian and Arabic languages. As a result, I was able to write the code like this, and it supports both Persian and Arabic text well. import kivy.app import kivy.uix.label import arabic_reshaper import bidi.algorithm class TestApp(kivy.app.App): def build(self): bidi_text = bidi

python and kivy input text in first windows after click button print ( text ) as label ( update label ) in second widows

十年热恋 提交于 2021-02-08 11:37:49
问题 I want create simple app and I'm new in python, this app contain two windows , at first windows have one button (Save) and two input text. at the second windows we have four label. after click on button in first windows the label ( username 1 print here ) in second windows change according text input in first windows.enter image description here enter image description here when I run my code the label not change, any one can help me what is wrong. python code from kivy.app import App from

Add a Matplotlib Graph to a Widget in KivyMD

风流意气都作罢 提交于 2021-01-29 15:45:09
问题 I am currently creating a mobile app with KivyMD which serves for managing travel expense requests. The user will enter a desired requested amount for different types of expenses on an MDTextField. I want to add a donut graph made with patplotlib into an MDBoxLayout. Such graph should automatically update as the request is filled. (For clarity I will include a screenshot. The square in red is the desired location for my graph). I created a method called update_method_graph and used fixed

Interaction and Deletion among widgets on Python + KivyMD and Code Optimization

北城余情 提交于 2021-01-29 14:58:56
问题 I am currently building an app that serves as a travel expenses manager. I have a system in which the user writes the desired amount of the expense on an MDTextField, such expense will be recorded in an MDList and the total amount of requested expenses will be added to an MDTextField. For clarity I will post a screen shot: All this system works correctly so far. However, there can be mistakes made by the user. I want the user to be able to delete an item from the MDList when the trash-can

KivyMD MDTabs can't handle

回眸只為那壹抹淺笑 提交于 2021-01-29 06:50:52
问题 I'm just started to work with KivyMD. I was working on MDTabs system. I'm trying to switch tab after release button. If I try get_tab_list() func. under MDTabs(id:tabs), I get this error: AttributeError: 'MDTabs' object has no attribute 'get_tab_list' I can't figure it out. Please help me. from kivy.uix.floatlayout import FloatLayout from kivymd.app import MDApp from kivymd.uix.tab import MDTabsBase KV = ''' BoxLayout: orientation: "vertical" MDToolbar: title: "Example Tabs" MDTabs: id: tabs

How can I get selected text in another textinput. Getting error “'ScreenManager' object has no attribute 'widget_1'”

本秂侑毒 提交于 2021-01-07 06:31:32
问题 I am trying to get the selected text from recycleview to the txt_input1 but it is throwing error. It was working in the separate .py file but then I transfered the code into my run1.py file and its not working the new code is start and end is enclosed in comments "#Start" and "end" run1.py file from kivy.lang import Builder from kivy.app import App from kivy.uix.widget import Widget from kivy.properties import ObjectProperty from Option import OptionApp import sys, time, threading from kivy

How can I dispaly the selected item from recycleview to the texinput

天涯浪子 提交于 2021-01-05 07:28:21
问题 In following code I want to dispaly the selected item from recycleview to the text_box1 which is from class MyTextInput and the code to display in textbox is in the class SelectableLabel --> method apply_selection. the when I print the selected item it gets printed on console. when i try to display it in the textinput it shows the error. What changes should I do. the solution with the code will be good to understand. thank you test.py file from kivy.app import App from kivy.uix.textinput

How can I search in recycleview

核能气质少年 提交于 2020-12-27 06:23:21
问题 How can I search in recycleview with updated review .I can also search now. But when I type 3 alphabets in txt_input it search for the same result. and gives the list which contains those 3 alphabets. But i want to make as a search engine. so if I type "TAT" it will show me TATA MOTORS PVT LTD,Tata Elxsi Limited,Tata Steel Limited,etc. But when I type "TATA MO" it doesnot update the recycleview with new search suggestions. How can I achieve that kind of updated result every time add alphabets