This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| import keyword | |
| import string | |
| class TreeFrame(wx.Frame): | |
| def __init__(self): | |
| wx.Frame.__init__(self, None, title='TreeCtrl example') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| import wx.lib.scrolledpanel as scrolled | |
| ######################################################################## | |
| class MyForm(wx.Frame): | |
| #---------------------------------------------------------------------- | |
| def __init__(self): | |
| wx.Frame.__init__(self, None, wx.ID_ANY, "Tutorial", size=(200,500)) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| import wx.animate | |
| import os | |
| import os | |
| GIFNames = [ | |
| #os.path.join(os.path.dirname(__file__),'bitmaps', 'AG00178_.gif'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import peewee | |
| database = peewee.SqliteDatabase("wee.db") | |
| ######################################################################## | |
| class Artist(peewee.Model): | |
| """ | |
| ORM model of the Artist table | |
| """ | |
| name = peewee.CharField() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import datetime | |
| import peewee | |
| from models import Album, Artist | |
| new_artist = Artist.create(name="Newsboys") | |
| new_artist.save() | |
| album_one = Album(artist=new_artist, | |
| title="Read All About It", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| class MyForm(wx.Frame): | |
| #---------------------------------------------------------------------- | |
| def __init__(self): | |
| wx.Frame.__init__(self, None, wx.ID_ANY, "Tutorial", size=(500,500)) | |
| # Add a panel so it looks the correct on all platforms | |
| panel = wx.Panel(self, wx.ID_ANY) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import wx | |
| import sys | |
| ######################################################################## | |
| class redirect(object): | |
| """""" | |
| #---------------------------------------------------------------------- | |
| def __init__(self, obj): | |
| """Constructor""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <LoginScreen@GridLayout>: | |
| my_username: username | |
| my_password: password | |
| rows: 2 | |
| cols: 2 | |
| padding: 5 | |
| spacing: 5 | |
| Label: | |
| text: 'User Name:' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from kivy.app import App | |
| from kivy.uix.boxlayout import BoxLayout | |
| from kivy.uix.button import Button | |
| from kivy.uix.label import Label | |
| from kivy.uix.textinput import TextInput | |
| class TutorialApp(App): | |
| def build(self): | |
| main_layout = BoxLayout(orientation="vertical") | |
| user_layout = BoxLayout(orientation="horizontal", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <UsernameWidget>: | |
| BoxLayout: | |
| size: root.size | |
| pos: root.pos | |
| orientation: "horizontal" | |
| Label: | |
| text: "Username:" | |
| TextInput: |
OlderNewer