Use LCD Number widget (QLCDNumber class) to display decimal,
Use QTimer class to perform repetitive timer class
b)
The value() method of the QLCDNumber class returns the numerical value displayed by the LCD
Number widget
c)
The setMode() is used change the base of the numbers (Hex, Dec, Oct, Bin)
self.lcdNumber.setMode(QLCDNumber.Dec)
1.2)
a)
Timers is used to perform a repetitive task; to use a timer you have to create an instance of QTimer
class
b)
setSingleShot(true): set the timer to generate a timeout() signal only once
singleShot(n): set the timer to generate a timeout() signal only once after n millisecond
1.3)
a)
The purpose of selectionChanged() signal is to call function dispdate when a calendar date is
changed
b)
The name of the function that retrieves the date selected by the user is selectedDate() of the
calenderWidget, and the widget that displays the output is the object of the QDateEdit (dateEdit)
Downloaded by: Yusufdacosta | yusuf@sun.ac.za
Distribution of this document is illegal
1) Set the focus to the next window in the list of the child windows
2) Set the keyboard focus to the previous window in the list of child windows
3) Close all the sub windows
4) Arranges the sub windows in cascade fashion
5) Arranges the sub windows in tile fashion
6) Set the view mode of the MDI area
2.2)
1) Horizontal Layout: This type of layout arranges widgets next to each other in row
2) Vertical Layout: the vertical layout arranges the selected widgets vertically, in a column one
below another
2.3)
IsCheckable(): This method returns true if the Group Box has checkbox in its title; otherwise it return
false
isChecked(): This method returns true if the Group Box is checked
Cursor(): Returns the cursor object from the connection. The cursor object is used to transverse the
record from the result set.
3.2.3)
Execute(): Used to execute the SQL statement
Downloaded by: Yusufdacosta | yusuf@sun.ac.za
Distribution of this document is illegal
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller mulah11. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $2.94. You're not tied to anything after your purchase.