WxPython
| 개발자 | 로빈 던(Robin Dunn) 해리(Harri Pasanen) |
|---|---|
| 발표일 | 1998년 |
| 안정화 버전 | 4.2.2[1]
/ 2024년 9월 11일 |
| 저장소 | |
| 프로그래밍 언어 | C++ / 파이썬 |
| 운영 체제 | 크로스 플랫폼 |
| 라이선스 | wxWindows 라이선스 |
| 상태 | 개발 중 |
| 웹사이트 | wxpython.org |
wxPython은 크로스 플랫폼 GUI API(흔히 툴킷으로 부름)인 wxWidgets(C++로 작성)를 파이썬 프로그래밍 언어 환경에서 이용하기 위한 래퍼(wrapper)이다. 파이썬과 묶여 있는 트킨터를 대체하는 것들 가운데 하나이다. 파이썬 확장 모듈 (네이티브 코드)로 추가되었다. 이 밖의 다른 대체물로는 PyGTK, PyQt가 있다. wxWidgets과 같이 wxPython은 자유 소프트웨어이다.
라이선스
래퍼로서 wxPython은 wxWidgets에 쓰이는 동일한 자유 소프트웨어 라이선스를 이용한다.[2] 이 라이선스는 자유 소프트웨어 재단과 오픈 소스 이니셔티브에 승인되어 있다.
예
Hello world 모듈의 간단한 예로, wxPython에 두 개의 주요 오브젝트(주가 되는 창 객체와 응용 프로그램 객체)를 만드는 것을 기술하고 있다. MainLoop()를 호출하여 프로그램의 사용자 상호 작용 부분을 관리하는 이벤트 시스템에 제어권을 넘긴다.
#!/usr/bin/env python
import wx
class TestFrame(wx.Frame):
def __init__(self, parent, title):
wx.Frame.__init__(self, parent, title=title)
text = wx.StaticText(self, label="Hello, World!")
app = wx.App(redirect=False)
frame = TestFrame(None, "Hello, world!")
frame.Show()
app.MainLoop()
wxPython으로 개발된 응용 프로그램
같이 보기
- wxGlade: 파이썬 코드를 만드는 wxWidgets용 GUI 디자이너
각주
- ↑ “wxPython Changelog” (영어). 《wxPython》. 2024년 9월 11일. 2024년 11월 28일에 확인함.
- ↑ “Copyright notice”. 2009년 2월 16일에 원본 문서에서 보존된 문서. 2010년 8월 27일에 확인함.
- Noel Rappin; Robin Dunn (2006). 《wxPython in Action》. Greenwich, CT: Manning Publications. ISBN 1-932394-62-1.
외부 링크
위키미디어 공용에 WxPython 관련 미디어 분류가 있습니다.- WxPython
- 공식 웹사이트 - wxWidgets 공식 웹사이트
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.