Hello Friends Welcome back. In this video I am going to tell you about take interpret. The button visit is a standard interface, which is used for various kinds of pattern. A button is a visit which is designed for the user to interact with. Therefore, if the buttons present, If the button is pressed by a mouse click some action might be started. They can also contain text and images like labels.
While labels can display text in various forms, our button can only display text in a single font. The text of a button can display more than one line. Python function or method can be associated with a button. This function or method will be executed If the button is pressed in some way in text over 10 Just go to pattern master option active background active foreground MIDI VG Come on font FC, these are all our buttons options. Active background means, what will the color If the button is active and active foreground color foreground when button is active, these are border and VG for background color command is used is used when we click mouse button a method is invoked and command we will read that matter font inside pretend text we are it is there, what type of font in there I justify parents this all are related to for layout of button.
So, I'm going to give one simple example for this token idle And this I will make two buttons, one for one, and what will show message when you click on them Okay, so listen, I'm creative and next call to quit fg and come on. Dark, back, dark side the Yes button, copy this next button will be used for arguing message as well right here Extra splitter route dot may now save this file and run it Yeah, I have to define Hello also. Hello. Inside Write, write any message you want to print hello See two buttons created and one and Hello, just pressed on Hello, print hello world message here. This is a simple example for demonstrating how much modern world and what happened when you press that button, how method is invoked and how to how to change the color of a button and etc so in this video I will give you an example which domain Straight how to use a simple button function and counter function.
When you press that button, automatic counter increases. So for now, happy coding, keep learning and keep moving