Python Programming for Biology: Bioinformatics and Beyond


Graphical interfaces



Download 7,75 Mb.
Pdf ko'rish
bet427/514
Sana30.12.2021
Hajmi7,75 Mb.
#91066
1   ...   423   424   425   426   427   428   429   430   ...   514
Bog'liq
[Tim J. Stevens, Wayne Boucher] Python Programming

26

Graphical interfaces

Contents

An introduction to graphical user interfaces

Widgets and graphics libraries

GUI construction

Python GUI examples

Using Tkinter

Using Python Qt

An introduction to graphical user interfaces

At some stage when writing your own programs there may come a time when you want

others to be able to use what you have created without them necessarily having to know

anything  about  programming  or  Python.  Should  this  happen  the  next  step  is  to  consider

writing  a  more  friendly  interface  to  the  program.  Once  upon  a  time  in  computing

everything  was  text-based  and  the  user  had  to  type  commands  to  get  things  to  work.

Fortunately things have moved on and we are now usually presented with graphics and a

pointing device, either a mouse or a touch screen, and the user can interact with graphical

objects like menus and buttons.

When  building  a  graphical  user  interface  (GUI)  the  programmer  must  be  mindful  of

various factors, which are sometimes antagonistic, forcing us to make compromises. For

example,  the  designer  has  to  strike  a  balance  between  on  the  one  hand  giving  lots  of

functionality and on the other hand keeping things simple for novices and intuitive to use.

In  this  chapter  we  will  aim  to  give  some  general  advice  about  the  programming,  but  we

leave  you  to  make  the  tough  choices.  We  wish  to  be  clear  that  this  chapter  deals  with

making graphical interfaces that run on the users’ local computer. We will not venture into

the  world  of  Internet-based  applications,  although  these  are  becoming  increasingly

important, and the Pyjamas library,

1

which is available for Python programmers, works in



a remarkably similar way to the graphical libraries discussed here.


Download 7,75 Mb.

Do'stlaringiz bilan baham:
1   ...   423   424   425   426   427   428   429   430   ...   514




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish