kivy.factory.FactoryException: Unknown class <MDToolbar>

6,009 views
Skip to first unread message

Rattanak Phok

unread,
Aug 20, 2022, 5:41:36 AM8/20/22
to Kivy users support
Screenshot 2022-08-20 164056.png

i have got this issue what should i do? kivy.factory.FactoryException: Unknown class <MDToolbar>

Elliot Garbus

unread,
Aug 20, 2022, 7:10:22 AM8/20/22
to kivy-...@googlegroups.com
In kivyMD the toolbar has changed. There is only a MDTopAppBar or the MDBottomAppBar.

In your code change MDToolbar to one of the new toolbars. Read: https://kivymd.readthedocs.io/en/latest/components/toolbar/index.html


Sent from my iPhone

On Aug 20, 2022, at 4:41 AM, Rattanak Phok <rattan...@gmail.com> wrote:

Screenshot 2022-08-20 164056.png


i have got this issue what should i do? kivy.factory.FactoryException: Unknown class <MDToolbar>

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/19b72bc9-1402-48a3-bb82-ee345461b795n%40googlegroups.com.
Screenshot 2022-08-20 164056.png

Rattanak Phok

unread,
Aug 21, 2022, 3:08:43 PM8/21/22
to Kivy users support
Thank you working now !! 

JOVINE MUTELANI

unread,
Oct 9, 2022, 6:51:48 AM10/9/22
to Kivy users support
Thanks, this worked also for me on the same issue

MFF HACKs (MFF)

unread,
Aug 27, 2023, 8:28:00 PM8/27/23
to Kivy users support
I am getting this kivy.factory.FactoryException: Unknown class <SmartTileWithStar> problem. please help me and please check this code.

from kivymd.app import MDApp
from kivy.uix.screenmanager import Screen,ScreenManager
from kivy.lang import Builder
from kivymd.uix.list import MDList,OneLineListItem,TwoLineListItem, ThreeLineListItem

#Builder String
helper_string ='''

ScreenManager:
 Hello:

<MyTile@SmartTileWithStar>
 size_hint_y: None
 height: '240dp'

<Hello>:
 name: 'hello'
 ScrollView:
  MDGridLayout:
   cols:3
   padding: dp(9),dp(9)
   spacing: dp(6)
   MyTile:
    source: 'img.jpg'
    text: '[size=26] HACODE[/size]'
    #stars: 5
   MyTile:
    source: 'img1.jpg'
    text: '[size=26][color=#00FFFF]WWW[/color][/size]'
    #stars: 2
   MyTile:
    source: 'img2.jpg'
    text: '[size=26][color=#FF0000] PYTHON[/size][/color]'
    #stars: 5

'''

class Hello(Screen):
 pass
class Bye(Screen):
 pass

sm = ScreenManager()
sm.add_widget(Hello(name = 'hello'))
sm.add_widget(Bye(name='bye'))

class DemoApp(MDApp):
 def build(self):

  self.theme_cls.theme_string = 'Light'

  self.theme_cls.primary_hue = 'A700' 
  screen = Screen()

  self.help_str = Builder.load_string(helper_string)

  screen.add_widget(self.help_str)

  return screen

 def theme_changer(self):
  self.theme_cls.theme_style = "Dark"

 def theme_changer2(self):
  self.theme_cls.theme_style = "Light"

 def change_property(self):
  self.help_str.get_screen('hello').ids.cha_name.text ="Good Day"
  

DemoApp().run()

elli...@cox.net

unread,
Aug 27, 2023, 9:25:36 PM8/27/23
to kivy-...@googlegroups.com

Looking at the docs for KivyMD, there is no widget Named SmartTilewithStar, there is a SmartTile. https://kivymd.readthedocs.io/en/1.1.1/components/imagelist/#kivymd.uix.imagelist.imagelist.MDSmartTile



 

 

i have got this issue what should i do? kivy.factory.FactoryException: Unknown class <MDToolbar>

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/19b72bc9-1402-48a3-bb82-ee345461b795n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.

MFF HACKs (MFF)

unread,
Aug 27, 2023, 10:30:02 PM8/27/23
to Kivy users support

Know I this error  ModuleNotFoundError: No module named 'certifi'

elli...@cox.net

unread,
Aug 27, 2023, 10:38:36 PM8/27/23
to kivy-...@googlegroups.com

If you execute pip list in your current venv, do you see ‘certifi’?

If not make sure you install kivy following the directions here: https://kivy.org/doc/stable/gettingstarted/installation.html#install-pip

Reply all
Reply to author
Forward
0 new messages