Upgrade to remove ads
compro final exam
Terms in this set (58)
Python interface to the Tk GUI toolkit shipped with Python.
This is an open-source Python interface for wxWindows.
Python port for Java which gives Python scripts seamless access to Java class libraries on the local machine.
standard GUI library for Python.
1. Import the Tkinter module.
2. Create the GUI application main window.
3. Add one or more of the above-mentioned widgets to the GUI application.
4. Enter the main event loop to take action against each event triggered by the user.
Steps in creating a GUI application using Tkinter
provides various controls, such as buttons, labels and text boxes used in a GUI application.
used to display buttons in your application.
used to draw shapes, such as lines, ovals, polygons and rectangles, in your application.
used to display a number of options as checkboxes. The user can select multiple options at a time.
used to display a single-line text field for accepting values from a user.
used as a container widget to organize other widgets.
used to provide a single-line caption for other widgets. It can also contain images.
used to provide a list of options to a user.
used to display menus in your application.
used to provide various commands to a user. These commands are contained inside Menubutton.
used to display multiline text fields for accepting values from a user.
used to display a number of options as radio buttons. The user can select only one option at a time.
used to provide a slider widget.
used to add scrolling capability to various widgets, such as list boxes.
used to display text in multiple lines.
used to provide a separate window container.
variant of the standard Tkinter Entry widget, which can be used to select from a fixed number of values.
container widget that may contain any number of panes, arranged horizontally or vertically.
simple container widget. Its primary purpose is to act as a spacer or container for complex window layouts.
used to display message boxes in your applications
The pack Method
This geometry manager organizes widgets in blocks before placing them in the parent widget.
The grid Method
This geometry manager organizes widgets in a table-like structure in the parent widget.
The place Method
This geometry manager organizes widgets by placing them in a specific position in the parent widget.
5. Relief styles
The Python standard for database interfaces
5. Microsoft SQL Server 2000
Python Database API supports a wide
range of database servers such as:
interface for connecting to a MySQL database server from Python. It implements the Python Database API v2.0 and is built on top of the MySQL C API.
It is required when you want to create your records into a database table.
fetch some useful information from the database.
It fetches the next row of a query result set. A result set is an object that is returned when a cursor object is used to query a table.
It fetches all the rows in a result set. If some rows have already been extracted from the result set, then it retrieves the remaining rows from the result set.
This is a read-only attribute and returns the number of rows that were affected by an execute method.
update one or more records, which are already
available in the database.
required when you want to delete some records from your database
mechanism that ensures data consistency.
Either a transaction completes or nothing happens at all.
A transaction must start in a consistent state and leave the system in a consistent state.
Intermediate results of a transaction are not visible outside the current transaction.
Once a transaction was committed, the effects are persistent, even after a system failure.
gives a green signal to database to finalize the changes, and after this operation, no change can be reverted back.
If you are not satisfied with one or more of the changes and you want to revert back those changes completely
use close method.
Used for non-fatal issues. Must subclass StandardError.
Base class for errors. Must subclass StandardError.
Used for errors in the database module, not the database itself. Must subclass Error.
Used for errors in the database. Must subclass Error
Subclass of DatabaseError that refers to errors in the data.
Subclass of DatabaseError that refers to errors such as the loss of a connection to the database. These errors are generally outside of the control of the Python scripter.
Subclass of DatabaseError for situations that would damage the relational integrity, such as uniqueness constraints or foreign keys.
Subclass of DatabaseError that refers to errors internal to the database module, such as a cursor no longer being active.
Subclass of DatabaseError that refers to errors such as a bad table name and other things that can safely be blamed on you.
Subclass of DatabaseError that refers to trying to call unsupported functionality.
YOU MIGHT ALSO LIKE...
Java ch 15 Summary
Database chapter 1
Lesson 5 - Advanced UI Interaction
ISYS 3393 Exam 3
OTHER SETS BY THIS CREATOR