Тёмный

Kivy Trick: Rounded Button Edges and more 

Samuel Courses
Подписаться 4 тыс.
Просмотров 24 тыс.
50% 1

Hello there, here is another simple trick for ya, more button styles, excuse the bg_noise : Its the morning rush....:D enjoy
Checkout my Full Kivy Course at a discount here:
www.udemy.com/desktop-guis-wi...
Support The Channel:
www.paypal.me/qodzero
Website:
www.samuelworks.org
Social:
Twitter: / @silverhash
Instagram: / silverhash_designs
Email: samuel@samuelworks.org

Опубликовано:

 

18 мар 2019

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 41   
@florinbujoreanu1020
@florinbujoreanu1020 Месяц назад
Great !! Thank you!
@atibyte
@atibyte 4 года назад
Hey Samuel, really useful tutorial. Keep them coming!
@user-cy3je1xd1c
@user-cy3je1xd1c 4 года назад
Thanks! Exactly what i was trying to find!
@martinanderssonaaberge4792
@martinanderssonaaberge4792 4 года назад
Great tutorial! It would be very interesting to see the code that made the actual interface. I have a really hard time getting anything to look good without using floating layout in kivy. I was wondering how you made the initial layout for this program
@thewilltejeda
@thewilltejeda 5 лет назад
Love this
@kalibbalanoor
@kalibbalanoor 4 года назад
thanks so much
@user-uq4mv8oi1e
@user-uq4mv8oi1e 4 года назад
Thanks for this tutorial! Could you make a tutorial how to make number picker (scrollin wheel number picker) by using kivy? If it's possible... Thanks in advance!
@devenderkamboj6588
@devenderkamboj6588 5 лет назад
Great video , please make more videos for kivy
@samuelcourses7225
@samuelcourses7225 5 лет назад
Of course, more coming soon
@farmersbasketuganda2964
@farmersbasketuganda2964 4 года назад
i tried this but my buttons do not have smooth edges though they are rounded but thanks so much for this
@johanneslerchenmueller3012
@johanneslerchenmueller3012 4 года назад
Great content-as usual .Thank you very much! Is there a way to access a custom button from the python file ? And how can you add it dynamically in Python?
@samuelcourses7225
@samuelcourses7225 4 года назад
You can just declare it in python
@raymondmasupha9757
@raymondmasupha9757 2 года назад
how do i style the "background_down" in the canvas
@shisk1
@shisk1 4 года назад
Great content! I was wondering if the clicking effect is still working after having the rounded borders. I did exactly what you did, and when I put the back_color to (0,0,0,0), I can no longer see the flashing effect upon clicking And interestingly, I didn't see you click on the rounded button during the video. Again, awesome content! Thanks!
@samuelcourses7225
@samuelcourses7225 4 года назад
The clicking effect is gone with this method, but you can inherit from a TouchRippleBehaviour to get a nice material effect
@moustafachenine794
@moustafachenine794 2 года назад
How to rounder button without image
@anoop_rana
@anoop_rana 4 года назад
Hi Samuel , i have create an app and i have used Window.bind(on_keyboard=self.function) for back button functionality.Everything is working but this results in a keyboard automatically popping up when the app opens .How can i not let the keyboard open up automatically when the app starts??The problem is that Window.bind(on_keyboard=self.Android_back_click) results in keyboard unnecessarily popping up when the app starts.Below is the code: from kivy.core.window import Window from kivy.properties import ObjectProperty class MyAppClass(FloatLayout): _screen_manager=ObjectProperty(None) def __init__(self,**kwargs): super(MyAppClass,self).__init__(**kwargs) #code goes here and add: Window.bind(on_keyboard=self.Android_back_click) def Android_back_click(self,window,key,*largs): if key == 27: self._scree_manager.current='screen1' return True class MyApp(App): def build(self): return MyAppClass() if __name__=='__main__': MyApp().run()
@MrAjiii
@MrAjiii 5 лет назад
There isn't a way to match the two buttons either because you're using a list for the radius and integer for the lines
@samuelcourses7225
@samuelcourses7225 5 лет назад
yup, that's why we make two separate widgets, you can ofcourse make one to work either way but that means we have to go to the .py file...and iwanted to keep this simple mate
@GarthFransman
@GarthFransman 5 лет назад
South African accent ? Thanks for the the vids btw !!
@menzithesonofhopehlope7201
@menzithesonofhopehlope7201 4 года назад
Sounds Zim to be, maybe Shona. Anyway these videos tutorials are top top notch.
@giancarlogarcia5587
@giancarlogarcia5587 5 лет назад
Hello Sir @Samuel , how to place a label beside of a button ? Thanks in advance
@samuelcourses7225
@samuelcourses7225 4 года назад
Wrap the Label and Button inside a boxlayout
@downtown_show
@downtown_show 5 лет назад
Hi can you make a video on how to make a video player with kivy
@first.samuel
@first.samuel 5 лет назад
can't unfortunately because I already made one, its in the full course, check the link in the description and udemy insists that paid content on udemy cannot be free elsewhere...the course is pretty cheap though :D
@MrBartok91
@MrBartok91 4 года назад
You have great videos. I have question, when i repllicated this on my app, i lost the reactive effec that them had when were gray. How can i recover this effect?. Probaly i take your udemy course.
@samuelcourses7225
@samuelcourses7225 4 года назад
I didn't get that, what effect
@MrBartok91
@MrBartok91 4 года назад
@@samuelcourses7225 Thank you for the answer. In example, the default button is gray and when you click on it, this one become blue while clicking. I changed the color to green/blue and doesn't display a different color when i click on it.
@samuelcourses7225
@samuelcourses7225 4 года назад
@@MrBartok91 yes, that because we disabled the background color so that we can paint on the canvas, what you can do is,on_press, updatw the canvas with a different colour
@MrBartok91
@MrBartok91 4 года назад
@@samuelcourses7225 Thanks!. I will triy it.
@rickardk7229
@rickardk7229 3 года назад
@polyviospatseadis9777
@polyviospatseadis9777 5 лет назад
can you do rounded corners on text input?
@samuelcourses7225
@samuelcourses7225 5 лет назад
Its hard since the TextInput draws on the canvas itself, thus any instructions you add will be ON TOP of your text but its disable however its far easier in such a case to just use a rounded background image
@ArnzTheGreat
@ArnzTheGreat 3 года назад
Hello I tried using the smoothbutton multiple times but it gives me an error if I use it more than once. I get the error "GraphicException: Invalid radius value, must be list of tuples/numerics". Is there a work around this? Thank you in advance
@michaellarsonlee
@michaellarsonlee 3 года назад
Hey did you figure this out? I have been cursing the past two hours messing around with this SAME fucking issue
@ArnzTheGreat
@ArnzTheGreat 3 года назад
@@michaellarsonlee Yeah I did, I removed the border_radius: [20] and specified it on the RoundRectangle itself like so: RoundedRectangle: radius: [(20,20),(20,20),(20,20),(20,20)]
@michaellarsonlee
@michaellarsonlee 3 года назад
@@ArnzTheGreat duuude you are a life saver thank you. I moved over the KivyMD but then those buttons size so wierd that i had to come back to this. Thanks man!!!! You are an absolute homie
@pablodiaz1811
@pablodiaz1811 4 года назад
Did you tried with kivymd library?
@samuelcourses7225
@samuelcourses7225 4 года назад
No..did from scratch
@ashwink4442
@ashwink4442 4 года назад
Yup, it is very easy to create a round button using kivymd
@kalibbalanoor
@kalibbalanoor 4 года назад
how can i get that source code your using
Далее
Exploring the Kivy NavigationDrawer - samuel courses
15:12
DOTA 2 - КЛАССИКА
19:17
Просмотров 210 тыс.
Этот Пёс Кое-Что Наделал 😳
00:31
How To Create Kivy App Backgrounds
9:46
Просмотров 27 тыс.
KivyMD Date Picker - Python Kivy GUI Tutorial #51
12:19
Kivy Tutorial 5 : Widgets & Switching Screens
25:47
Просмотров 92 тыс.
Kivy Basics
32:44
Просмотров 57 тыс.
Python Kivy GUI Example & Source Code
13:18
Просмотров 186 тыс.
Python/Kivy POS System Part 5:Routing(Part 1)
10:08
Просмотров 6 тыс.
This Is Why Python Data Classes Are Awesome
22:19
Просмотров 795 тыс.
Kivy Quickly - Make Any Widget a Button!
2:28
Просмотров 10 тыс.
DOTA 2 - КЛАССИКА
19:17
Просмотров 210 тыс.