Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A lightweight interactive UI guide system built with PySide

License

NotificationsYou must be signed in to change notification settings

hasielhassan/QtGuidedUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QtGuidedUI

GitHub top languageGitHub last commitLicenseGitHub release (latest by date)GitHub release downloadsGitHub release downloads

Demo

QtGuidedUI is a lightweight interactive guide system built withPySide, but usingQt.py for extended Qt bindings support.

It allows developers to create guided tours of their applications by configuring a series of steps in a JSON file.

The guide highlights specific UI elements, displays helpful tooltips with images and descriptions, and manages navigation through the guide steps.

Features

  • Configurable Steps: Define steps in a JSON configuration file with descriptions, images, and pre-actions.
  • Widget Highlighting: Visually highlight UI elements to draw user attention.
  • Interactive Dialogs: Display tooltips and dialogs with navigation controls (Next, Skip).
  • Dynamic Positioning: Automatically calculate dialog positions relative to highlighted widgets.
  • Pre-Action Support: Execute pre-defined actions before displaying each step.

Getting Started

Prerequisites

  • Python 3.7+

Install requirements using pip:

  • Qt.py 1.4.1+
pip install -r requirements.txt

Configuration

Create a JSON configuration file for your guide. An example configuration (guide_config.json) might look like this:

{"intro_message":"Welcome to the interactive guide!","outro_message":"You have completed the guide.","dialog_image_width":300,"steps": [    {"order":1,"object_name":"startButton","description":"Click this button to begin.","image":"start_button.png","pre_action":"prepare_start"    },    {"order":2,"object_name":"settingsButton","description":"Access settings here.","image":"settings.gif"    }  ]}
  • intro_message: Message displayed at the beginning of the guide.
  • outro_message: Message displayed after the guide is completed.
  • steps: An array of guide steps where:
    • order defines the sequence.
    • object_name is the name of the widget to highlight.
    • description is the tooltip text.
    • image (optional) is the image (or GIF) to show.Path is relative to theguide_config.json file.
    • pre_action (optional) is the name of a method on the parent widget to call before the step is shown.

Usage

Integrate the guided UI into your application by instantiating theGuidedUI widget and callingstart_guide().

Example:

importsysfromQt.QtWidgetsimportQApplicationfromQtGuidedUIimportGuidedUI# Adjust the import according to your project structureif__name__=="__main__":app=QApplication(sys.argv)# Pass the path to your JSON configuration file.guide=GuidedUI("path/to/guide_config.json")guide.start_guide()guide.show()# Display the main UI if necessarysys.exit(app.exec())

A complete and more realistic example is available in the sample folder:

sample/sample.py

Attributions

License

This project is licensed under the MIT License.

See theLICENSE file for details.

About

A lightweight interactive UI guide system built with PySide

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp