How did the designer make the preferences buttons?

Asked by Eslam Mostafa

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
Eslam Mostafa (cseslam) said :
#2

is it possible to granite with python or just vala ?

Revision history for this message
Eslam Mostafa (cseslam) said :
#3

Thanks Mario Guerriero, that solved my question.

Revision history for this message
Mario Guerriero (mefrio-g) said :
#4

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

Revision history for this message
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 :)