ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Py​Side

by DamnWidget ST2/ST3

Digia PySide and Riverbank's PyQt bindings for Qt on Python Sublime Text 2 and Sublime Text 3 support

Details

  • 2014.10.26.15.05.57
  • github.​com
  • github.​com
  • 3 years ago
  • 37 minutes ago
  • 5 years ago

Installs

  • Total 4K
  • Win 2K
  • OS X 697
  • Linux 1K
Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4
Windows 0 0 2 0 2 0 2 0 2 0 0 0 1 1 2 0 3 0 1 1 1 0 3 0 1 0 1 2 1 0 1 0 1 2 0 1 2 0 0 1 0 3 1 0 1 0
OS X 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0
Linux 1 0 1 1 1 1 0 0 1 0 0 0 0 0 0 0 0 1 0 0 2 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 0 1 0 1

Readme

Source
raw.​githubusercontent.​com

Sublime PySide

status: beta

Overview

Sublime PySide adds Qt (PySide and PyQt4) support for Sublime Text 2 and Sublime Text 3 on Python.

Python support is build for PySide and PyQt4 as well. This has been tested on Linux and Mac OSX

Sublime Text 3: This plugin works on Sublime Text 3 as well as Sublime Text 2 you should only install it from Package Control as usual.

Copyright © 2012 - 2013 Oscar Campos oscar.campos@member.fsf.org

WARNING: SublimeRope features doesn't work in Sublime Text 3 but you can use Anaconda to get full auto completion.

Getting Started

Unzip / git clone the SublimePySide directory into your ST2's Packages directory. To create a new PySide Qt project just use your Operating System keybindings:

ctrl+shift+q on Linux
ctrl+super+q on Mac OSX
ctrl+alt+q on Windows

Then select the type of project you want to create and answer the questions.

You can also use the Tools menu at the toolbar to create a new project. You can configure SublimePySide to always use PySide or PyQt4 in the plugin settings file or just let it asks you when you generate a new project.

To convert PySide to PyQt4 syntax you can use the keybindings:

ctrl+shift+c, ctrl+shift+q on Linux
ctrl+super+c, ctrl+super+q on Mac OSX
ctrl+shift+c, ctrl+shift+q on Windows

To convert PyQt4 to PySide syntax you can use the keybindings:

ctrl+shift+c, ctrl+shift+p on Linux
ctrl+super+c, ctrl+super+p on Mac OSX
ctrl+shift+c, ctrl+shift+p on Windows

NOTES: Conversion from PyQt4 API 1 QVariant toWhatever methods to PySide is not automatic yet so maybe you should edit your code by hand after conversion. PySide only converts to PyQt4 API 2.

IMPORTANT: This plugin use SublimeRope if installed to generate Rope projects in an automatic way. Note that this behaviour is only true in Sublime Text 2, in Sublime Text 3 you can use Anaconda to get full autocompletion.

Features

PySide features are describe below:

Syntax Helpers

  • QML file syntax highligth
  • QMLProject file syntax highlight
  • QML snippets
  • PySide and PyQt4 project creation
  • PySide and PyQt4 autocompletion via SublimeRope
  • PySide to PyQt4 syntax conversion
  • PyQt4 to PySide syntax conversion

Qt Designer related

  • Open ui files with Qt Designer if installed (and it's path is configured)
  • Create new UI files for Qt Designer and open it automatically
  • Compile UI (available as side bar and context menus)
  • Preview UI (available as context menu)

Qt Linguist and friends

  • Open Qt Linguist from Sublime Text
  • Open TS files that we have already open in Sublime Text with Qt Linguist (it only works with TS or QM files)
  • Generate project (by Qt project file or by python sources) linguist TS files (available as side bar context menu)

Other Tools

  • Compile resource file with pyside-rcc (available in context and side bar menus)
  • Open QDBusViewer from Sublime Text

Supported Templates

  • Qt Quick Application (Python + QML)
  • Qt Quick UI (Pure QML)
  • Qt Gui Application (Pure Python)
  • Qt Console Application (Pure Python)
  • Qt Unit Test (dumb skeleton)

License:

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Have a look at “LICENSE.txt” file for more information.

Donate