পৃষ্ঠাসমূহ

Search Your Article

CS

 

Welcome to GoogleDG – your one-stop destination for free learning resources, guides, and digital tools.

At GoogleDG, we believe that knowledge should be accessible to everyone. Our mission is to provide readers with valuable ebooks, tutorials, and tech-related content that makes learning easier, faster, and more enjoyable.

What We Offer:

  • 📘 Free & Helpful Ebooks – covering education, technology, self-development, and more.

  • 💻 Step-by-Step Tutorials – practical guides on digital tools, apps, and software.

  • 🌐 Tech Updates & Tips – simplified information to keep you informed in the fast-changing digital world.

  • 🎯 Learning Support – resources designed to support students, professionals, and lifelong learners.

    Latest world News 

     

Our Vision

To create a digital knowledge hub where anyone, from beginners to advanced learners, can find trustworthy resources and grow their skills.

Why Choose Us?

✔ Simple explanations of complex topics
✔ 100% free access to resources
✔ Regularly updated content
✔ A community that values knowledge sharing

We are continuously working to expand our content library and provide readers with the most useful and relevant digital learning materials.

📩 If you’d like to connect, share feedback, or suggest topics, feel free to reach us through the Contact page.

Pageviews

Thursday, March 30, 2017

PyGTK - Label Class

A Label widget is useful to display non-editable text. Label is used by many other widgets internally. For example, Button has a label to show text on the face. Similarly, MenuItem objects have a label. A label is a windowless object, so it cannot receive events directly.
Label class has a simple constructor −

gtk.Label(str = None)
The following useful methods can be used with Label object −
S.NO Methods and Description
1 set_text()
This sets new text as label
2 get_text()
This returns text from label
3 set_use_underline()
If true, an underscore in the text indicates the next character should be used for the mnemonic accelerator key.
4 set_justify
This sets the alignment of the lines in the text of the label relative to each other.
Possible values are – gtk.JUSTIFY_LEFT, gtk.JUSTIFY_RIGHT, gtk.JUSTIFY_CENTER, and gtk.JUSTIFY_FILL.
5 Set_line_wrap()
If true, the line will be wrapped
6 set_selectable()
If true, the text in the label can be selected for copy-paste
7 set_width_chars()
This sets the width of a label
The following signals are emitted by label widget −
activate-current-link This gets emitted when the user activates a link in the label.
activate-link This gets emitted to activate a URI.
copy-clipboard This gets emitted when text is copied from the label to the clipboard.

No comments:

Post a Comment