質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

Q&A

解決済

2回答

3579閲覧

pyqt5のサンプルの起動方法

wabisuke2718

総合スコア96

Python 3.x

Python 3はPythonプログラミング言語の最新バージョンであり、2008年12月3日にリリースされました。

0グッド

0クリップ

投稿2017/04/10 08:22

pyqt5を使ってみようと思っています。

https://www.riverbankcomputing.com/software/pyqt/download5

上のサイトからpyqt5一式をダウンロードしたところ、中にexamplesフォルダがあり、

ここにサンプルが入っているのですが、その起動方法、見方?が分かりません。

READMEには

python

1PyQt is supplied with a number of example applications and demonstrations that 2have been written to provide developers with examples of the Qt API in use, 3highlight good programming practise, and showcase features found in each of 4Qt's core technologies. 5 6The example and demo launcher can be used to explore the different categories 7available. It provides an overview of each example, lets you view the 8documentation in Qt Assistant, and is able to launch examples and demos. 9 10Documentation for these examples can be found in the Tutorial and Examples 11section of the Qt documentation. 12 13 14Finding the PyQt Examples and Demos launcher 15============================================ 16 17On Windows: 18 19The launcher can be accessed via the Windows Start menu. Select the menu 20entry entitled "Examples and Demos" entry in the submenu containing PyQt5. 21 22On all platforms: 23 24The source code for the launcher can be found in the examples/demos/qtdemo 25directory in the PyQt package. 26

と書いてあり、ウィンドウズの場合、スタートメニューにランチャーがあるはずなのですが、

そのようなものはないです。

このサンプルはどのように起動したり見たりすることができるのでしょうか?

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

manzyun

2017/04/10 08:57

どのような方法でダウンロードしたか記入して頂けると回答しやすいです。リンク先を見た限りだと、「Source Packages」,「Binary Packages」,「Development Snapshots」の3つの方法がありますので。
guest

回答2

0

ベストアンサー

PyQt5は導入済みとすると、以下の手順でサンプル(各種サンプルを起動するランチャー)を起動できます。

  • コンソール(端末)上でexamples\qtdemoに移動します。
  • コンソール(端末)上でpython qtdemo.pyを実行します。※OSなどによりpython3かもしれません。

実行結果
イメージ説明

投稿2017/04/10 09:45

can110

総合スコア38233

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

0

もしかしたらこちらのページが参考になるかもしれません。
PyQt5とpython3によるGUIプログラミング[0]

#追記
質問者様の過去の質問を確認して、すでにQtをインストールされていることが
分かりました。見当違いの回答をしてすみませんでした。

普段のプログラムの動かし方だと無理な感じでしょうか?

投稿2017/04/10 09:11

編集2017/04/10 09:35
退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問