Comments on: How to Create GUI Applications Under Linux Desktop Using PyGObject – Part 1 https://www.tecmint.com/create-gui-applications-in-linux/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Sun, 15 Sep 2019 21:25:40 +0000 hourly 1 By: David Henderson https://www.tecmint.com/create-gui-applications-in-linux/comment-page-1/#comment-1245034 Sun, 15 Sep 2019 21:25:40 +0000 http://www.tecmint.com/?p=9817#comment-1245034 I appreciate the start of using glade. I found that there were few syntax errors in the “Glade the Designer Way” causing the program to crash.

I found that:

Handler “button_1click” should be “button1_click”

The file “test.py” should read the following:

#!/usr/bin/python
# -*- coding: utf-8 -*-

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

from gi.repository import Gtk
   
class Handler:
    def button1_clicked(self, button):
     print "Hello World!"

builder = Gtk.Builder()
builder.add_from_file("myprogram.glade")
builder.connect_signals(Handler())

ournewbutton = builder.get_object("button1")
ournewbutton.set_label("Hello, World!")

window = builder.get_object("window1")

window.connect("delete-event", Gtk.main_quit)
window.show_all()
Gtk.main()
]]>
By: xABBAAA https://www.tecmint.com/create-gui-applications-in-linux/comment-page-1/#comment-1075213 Sat, 01 Dec 2018 18:56:26 +0000 http://www.tecmint.com/?p=9817#comment-1075213 Need some help with that snake thing, I don’t I like C++.

]]>
By: MJZ2325 https://www.tecmint.com/create-gui-applications-in-linux/comment-page-1/#comment-1055622 Sun, 04 Nov 2018 10:37:41 +0000 http://www.tecmint.com/?p=9817#comment-1055622 I’m finding this very interesting. I used to program years ago – mainly in BASIC, and small dalliances with C & COBOL (a very elegant language, essentially like writing English sentences).

I become fed up with Windows 10, which has basically ruined my HP Pavilion dv7 (the Windows 7 it originally came with ran far better), so I bought a second hand MacBook Pro, which I love and is perfect for all my everyday uses, especially media – I’m a keen photographer and also getting into film-making. I would have bought a new MacBook, but if I’m honest I couldn’t afford it, and they’ve stopped doing the 17″ screens anyway – big mistake, Apple – but I digress.

Being loathed to get rid of the HP, whose hardware is of a similarly high spec to the MacBook, I’ve decided to use it for a very different purpose, effectively restoring my HP with Linux Mint Tara, which looks like a really elegant system, and and using it to get back into programming with this impressive Python language, so I basically wanted to say thank you to the author for writing these tutorials, and to ask the community for any tips you may have for someone who, while reasonably well-versed with computers generally, is very much out of date on the nuts & bolts side, and basically a beginner where Linux & Python are concerned.

Thank you in advance for any helpful replies.

]]>
By: george codestanza https://www.tecmint.com/create-gui-applications-in-linux/comment-page-1/#comment-969236 Tue, 13 Feb 2018 16:14:38 +0000 http://www.tecmint.com/?p=9817#comment-969236 Nice indentation there. Must be some real code experts on this site

]]>
By: itimilli süt https://www.tecmint.com/create-gui-applications-in-linux/comment-page-1/#comment-964112 Thu, 25 Jan 2018 18:07:15 +0000 http://www.tecmint.com/?p=9817#comment-964112 BaCon (Basic to C Convertor) is an easy programming tool.

]]>