📄 204.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Robots" content="INDEX,NOFOLLOW">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<TITLE>Safari | Python Developer's Handbook -> Designing a Good Interface</TITLE>
<LINK REL="stylesheet" HREF="oreillyi/oreillyN.css">
</HEAD>
<BODY bgcolor="white" text="black" link="#990000" vlink="#990000" alink="#990000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" cellpadding=5 cellspacing=0 border=0 class="navtopbg"><tr><td><font size="1"><p class="navtitle"><a href="8.html" class="navtitle">Web Development</a> > <a href="0672319942.html" class="navtitle">Python Developer's Handbook</a> > <a href="199.html" class="navtitle">14. Python and GUIs</a> > <span class="nonavtitle">Designing a Good Interface</span></p></font></td><td align="right" valign="top" nowrap><font size="1"><a href="main.asp?list" class="safnavoff">See All Titles</a></font></td></tr></table>
<TABLE width=100% bgcolor=white border=0 cellspacing=0 cellpadding=5><TR><TD>
<TABLE border=0 width="100%" cellspacing=0 cellpadding=0><TR><td align=left width="15%" class="headingsubbarbg"><a href="203.html" title="Overview of Other GUI Modules"><font size="1">< BACK</font></a></td><td align=center width="70%" class="headingsubbarbg"><font size="1"><a href="popanote.asp?pubui=oreilly&bookname=0672319942&snode=204" target="_blank" title="Make a public or private annnotation">Make Note</a> | <a href="204.html" title="Use a Safari bookmark to remember this section">Bookmark</a></font></td><td align=right width="15%" class="headingsubbarbg"><a href="205.html" title="Summary"><font size="1">CONTINUE ></font></a></td></TR></TABLE>
<a href="5%2F31%2F2002+4%3A47%3A57+PM.html" TABINDEX="-1"><img src=images/spacer.gif border=0 width=1 height=1></a><font color=white size=1>152015024128143245168232148039199167010047123209178152124239215162148043124063194095163194</font><a href="read6.asp?bookname=0672319942&snode=204&now=5%2F31%2F2002+4%3A47%3A57+PM" TABINDEX="-1"><img src=images/spacer.gif border=0 width=1 height=1></a><br>
<FONT>
<h3>
Designing a Good Interface</h3>
<p>The user interface is part of a program that interacts with the
user of the program. User interfaces take many forms. These forms range in
complexity from simple command-line interfaces to the point-and-click graphical
user interfaces provided by many modern GUI applications.</p>
<P>A GUI is built of graphical elements generally called
<A NAme="idx1073748306"></a>widgets. Typical widgets include such items as buttons,
scrollbars, and text fields. Widgets allow the user to interact with the
program and provide the user with visual feedback about the state of the
program.</p>
<P>Widgets do not stand alone, but rather are found within windows.
Windows contain and control the layout of widgets. Windows are themselves
widgets, however, they are called
<A NAme="idx1073748307"></a>
<i>toplevel</I> widgets as they can't be
placed inside other widgets.
<A NAme="idx1073748308"></a>
</p>
<p>A good interface makes it easy for users to tell the computer what
they want to do, for the computer to request information from the users, and
for the computer to present understandable information. Clear communication
between the user and the computer is the working premise of a good user
interface design. Some of the qualities that a good user interface must have
are clear, consistent, simple, user-controlled, direct, forgiving, feedback
provider, and aesthetic.
<a name="idx1073748309"></a>
<a name="idx1073748310"></a>
<a naMe="idx1073748311"></a>
<A namE="idx1073748312"></a>
</p>
<p>Following the next GUI design principles should help you create
more effective, user-friendly interfaces while avoiding many design errors.
Unfortunately, just following design principles cannot alone guarantee success
because it is entirely possible to create completely unworkable interfaces
while strictly adhering to the rules.</p>
<Ul>
<li>
<P>Don't try to reinvent the wheel. The user must be able to
anticipate the behavior of your program using knowledge gained from other
programs.</P>
</LI>
<li>
<p>Provide adequate user feedback. Keep the user informed about
his actions.</p>
</LI>
<LI>
<p>Create a safe environment for exploration.</p>
</li>
<LI>
<P>Struggle to make your application self-evident, by making the
actions easily recognizable for the components of your application.</P>
</li>
<li>
<P>The user must be able to anticipate a widget's behavior from
its visual properties.</P>
</LI>
<li>
<p>View every user warning and error dialog that your program
generates as an opportunity to improve your interface.</p>
</li>
<li>
<p>Do not abuse sound, color, animation, and multimedia clips.
They are appropriate for education or entertainment, but effective use in other
applications is difficult.</p>
</li>
<li>
<p>You better try to avoid modal behaviors. Programs using modal
behavior force the user to perform tasks in a specific order or otherwise
modify the user's expected responses.</p>
</li>
<li>
<P>Design your interface so that your users can accomplish their
tasks while being minimally aware of the interface itself.</p>
</lI>
<li>
<p>And finally, help users customize and preserve their preferred
work environment.
<A name="idx1073748313"></A>
<a naME="idx1073748314"></A>
<A name="idx1073748315"></A>
<A NAme="idx1073748316"></a>
</p>
</LI>
</UL>
</font>
<P><TABLE width="100%" border=0><TR valign="top"><TD><font size=1 color="#C0C0C0"><br></font></TD><TD align=right><font size=1 color="#C0C0C0">Last updated on 1/30/2002<br>Python Developer's Handbook, © 2002 Sams Publishing</font></TD></TR></TABLE></P>
<TABLE border=0 width="100%" cellspacing=0 cellpadding=0><TR><td align=left width="15%" class="headingsubbarbg"><a href="203.html" title="Overview of Other GUI Modules"><font size="1">< BACK</font></a></td><td align=center width="70%" class="headingsubbarbg"><font size="1"><a href="popanote.asp?pubui=oreilly&bookname=0672319942&snode=204" target="_blank" title="Make a public or private annnotation">Make Note</a> | <a href="204.html" title="Use a Safari bookmark to remember this section">Bookmark</a></font></td><td align=right width="15%" class="headingsubbarbg"><a href="205.html" title="Summary"><font size="1">CONTINUE ></font></a></td></TR></TABLE>
</TD></TR></TABLE>
<br><TABLE width=100% bgcolor=white border=0 cellspacing=0 cellpadding=5><TR><TD><H4 class=Title>Index terms contained in this section</H4>
<font size=2>
designing<BR>
<a href="#idx1073748312">interfaces</a> <a href="#idx1073748316">2nd</a><BR>
graphical user interfaces (GUIs)<BR>
toolkits<BR>
<a href="#idx1073748309">designing good interfaces</a> <a href="#idx1073748313">2nd</a><BR>
interfaces<BR>
graphical user (GUI)<BR>
<a href="#idx1073748310">toolkits;designing good interfaces</a> <a href="#idx1073748314">2nd</a><BR>
toolkits<BR>
graphical user interfaces (GUIs)<BR>
<a href="#idx1073748311">designing good interfaces</a> <a href="#idx1073748315">2nd</a><BR>
<a href="#idx1073748307">toplevel widgets</a><BR>
<a href="#idx1073748306">widgets</a> <a href="#idx1073748308">2nd</a><BR>
<BR>
</font></TD></TR></TABLE>
<!--EndOfBrowse-->
</TD></TR></TABLE>
<table width=100% border=0 cellspacing=0 cellpadding=0 bgcolor=#990000><tr><td><p align=center><font size=1 face="verdana,arial,helvetica" color=white>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -