Coder Social home page Coder Social logo

wxpython's Introduction

wxPython in Action

wxPython is a Python extension library for developing cross platform GUI. It is an alternative to other GUI development toolkits like PyQt, Tkinter etc. This repostiory contains a variety of code examples for developing different GUI elements with wxPython.

Usage

Below simple module demonstrantes creation of two main objects in wxPython which are the main window object and the application object, followed by passing the control to the event-driven system by calling MainLoop() which manages the user-interactive part of the program.

#!/usr/bin/env python
import wx

class App(wx.App):
    def OnInit(self):
        frame = wx.Frame(parent=None, title='Bare')
        frame.Show()
        return True

app = App()
app.MainLoop()

Download

Download or fork the repository

Made For You

git clone https://github.com/ubbn/wxPython.git

or

wget https://github.com/ubbn/wxPython/archive/master.zip

Disclosure

Those original code examples are found in a book wxPython in Action authored by Noel Rappin who is a senior developer and agile Coach at Table XI. Noel has authored multiple technical books, including Rails 4 Test Prescriptions, Master Space and Time With JavaScript, Trust-Driven Development and several more. If you like those example codes, I encourage you to buy his book wxPython in Action. Contact with him on his website or follow him on twitter.

  • These files and scripts are not intended for malicious purposes DISCLAIMER: I am not affiliated with either Noel Rappin or the sales of this book.

wxpython's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wxpython's Issues

trying to make a file and youtube downloader

hello, I'm new to python and trying to make files and youtube downloader but while making that I have a problem with setting the youtube URL by the user at runtime(plz someone kindly correct me where I'm wrong)

from future import unicode_literals
import youtube_dl
from youtube_dl import YoutubeDL
import urllib
import shutil
import os

u_input=int(input("enter url:"))
ydl_opts = {}
url=(u_input)
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download(url)
info_dict=ydl.extract_info(url[0], download=False)
video_title = info_dict.get('title', None)
print(video_title)
print("DONE!")
script_dir = os.path.dirname(os.path.realpath(file))
print(script_dir+"\" +video_title)](url)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.