Python GUI Development with GTK+ 3 - Tutorial 2 - Buttons

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

There is a error for specifying the gtk version ...solved by including the following

import gi
gi.require_version('Gtk', '3.0')

AmanSharma-hifd
Автор

I used to write classes, because I used Java before I learned Python. In Python, it's often clearer and more straightforward not to.

christopherhorn
Автор

Why do people dislike videos like this. I just don't get it :/ Awesome work BTW.

mithu
Автор

Finally Bucky goes Object Oriented. BTW the videos are awesome.

rishabhgupta
Автор

Would you be able to make a series of OOP for people that have a bit of experience with programming. I have never been able to get my head round the idea. I understand some of the terms but get lost with classes, constructers and object-view controllers. For developing any kind of modern program OOP is used over procedural.

danielgill
Автор

hey mate, you are great, i have learned JAVA and Android from you, i just cant thank u enough
i wish you had a tutorial about glade and how to connect the signals from glade to python
designing GUI with code is exhausting
take too long to code, take too many runs and test to see where widgets are

saeed
Автор

Can anyone explain why doesn't give error when calling self.button_clicked doesn't need () and then def uses 2 arguements (self, widget)

jojokids
Автор

Do you have any lessons about creating custom views in your GTK+ application?
I mean, like a scrolled view of some sort, that displays some fancy graphics that I can paint myself whenever that area needs to be refreshed, by drawing some shapes in there, or twiddling with some pixels, like a graph, or a physics simulation, etc. Because, you know, using predefined sets of widgets is one thing, but most useful applications aren't just some boring forms – they display custom graphics of some sort, and custom widgets. How to make such stuff?

bonbonpony
Автор

> im gonna be using OOP from here on out

great, now I have to unpack and strip this OOP to what matters, then also understand it enough to translate it into another language witch different gtk bindings. Can't you just write function code? Just please tell me, will you ever "reuse" this code?

lordrusk
Автор

You chould probably inherent from Gtk.Application and not Gtk.Window... It sets up a lot of nice things for you. :-)

GegoXaren
Автор

Why do we need the constructor inside the other constructor? Could we use the title like self.title ?

Rahul-mfwe
Автор

Goof work. How to display text "Gametime" into window? Not into console. I can not find resolution.

bylucihandmade
Автор

im totally not satisfied with this tutorial. Too helpfull and not enough indian accent. i could understand everything - from what you're saying to your code.

igorordecha