How did the designer make the preferences buttons?

Asked by Eslam Mostafa on 2012-05-11

Hey,
I am an amateur programmer, I write apps in python/gtk, I am writing a text editor for linux, and today I saw scratch, I really like the design, can I know how did the designer made the buttons of preferences window? They really look awesome.

Question information

Language:
English Edit question
Status:
Solved
For:
Scratch Edit question
Assignee:
No assignee Edit question
Solved by:
Mario Guerriero
Solved:
2012-05-13
Last query:
2012-05-13
Last reply:
2012-05-13
Best Mario Guerriero (mefrio-g) said : #1

If you mean the view switcher they are made using a Granite widget. See this file for more informations: http://bazaar.launchpad.net/~elementary-apps/scratch/scratch/view/head:/src/Dialogs/PreferencesDialog.vala

Eslam Mostafa (cseslam) said : #2

is it possible to granite with python or just vala ?

Eslam Mostafa (cseslam) said : #3

Thanks Mario Guerriero, that solved my question.

Mario Guerriero (mefrio-g) said : #4

You can try to import gee.repository.Granite module but I have never tested it

Eslam Mostafa (cseslam) said : #5

nah didn't work, seems like gtk works best with c, i guess i will have to master c eventually. thanks for your help :)