.uiを.pyに変換する

PySideで開発する際QtDesignerを使う方も多くおられるかと思います

QtDesignerで.uiを作り、コマンドプロントから.pyに変換して…
めんどくさい!
とてつもなくめんどくさい
ということでbatを作成しました

[bat]
@echo off
for %%f in (%*) do (
C:\Python27\Scripts\pyside-uic.exe -o %%~nf.py %%~nf.ui
)
[/bat]
使用方法は簡単上のコードをテキストにコピペしてuitopy.batという名前で保存

あとは該当する.uiをドラック&ドロップするだけ!!
とても簡単ですね
やったぜ!!

素晴らしいUI生活をあなたに
※pythonのインストールとpysideがインストールされていないと実行できません

返信を残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny