Skip to content

Commit

Permalink
Merge pull request #8 from akshayaurora/old_master
Browse files Browse the repository at this point in the history
Old master
  • Loading branch information
akshayaurora committed Feb 27, 2016
2 parents a70bb88 + 383e6d3 commit 8a495dc
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 17 deletions.
72 changes: 72 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask instance folder
instance/

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# IPython Notebook
.ipynb_checkpoints

# pyenv
.python-version

# venv
venv
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# PyDelhiMobile
Mobile App for PyDelhi
> Mobile App for PyDelhi
To test install kivy and run the following::
## Kivy Installation:
- https://kivy.org/docs/installation/installation.html

python main.py -m screen:droid2,portrait -m inspector
### To test install kivy and run the following::

$ python main.py -m screen:droid2,portrait -m inspector

### Help on screens
- https://kivy.org/docs/api-kivy.modules.screen.html
2 changes: 1 addition & 1 deletion pydelhiapp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def calc_time_left(self, dt):
days = td.days
hours, remainder = divmod(td.seconds, 3600)
minutes, seconds = divmod(remainder, 60)
self.time_left = 'Days: {} {}:{}:{}'.format(days, hours, minutes, seconds)
self.time_left = '{}d, {}:{}:{} to go'.format(days, hours, minutes, seconds)

if __name__ == '__main__':
PyDelhiApp().run()
35 changes: 22 additions & 13 deletions pydelhiapp/pydelhi.kv
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
padding: dp(20)
size_hint: 1, None
height: self.minimum_height
padding: [5,5,7,5]

<EventItemDetail@Popup>
separator_color: active_text_color
Expand Down Expand Up @@ -39,19 +40,25 @@
title: 'Dummy Title'
time: '9:00 - 10:00'
orientation: 'vertical'
padding: [0,4,0,4]
canvas.before:
Color:
rgba: 39./256., 115./256., 90./256., 1
Rectangle:
pos: self.pos
size: self.size
RightAlignedLabel:
text: root.time
font_size: '12dp'
markup: True
text: '[color=rgb(255,244,139)]{}[/color]'.format(root.time)
font_size: sp(10)
LeftAlignedLabel:
text: root.title
font_size: sp(14)
LeftAlignedLabel:
text: root.spkr_detail
markup: True
text: '[color=rgb(255,244,139)]{}[/color]'.format(root.spkr_detail)
font_size: sp(11)


<TabbedPanelHeader>
color: active_text_color if self.state == 'down' else (1, 1, 1, 1)
Expand All @@ -74,17 +81,21 @@
size: self.size
pos: self.pos


<PyDelButton@Button>
default: False
size_hint: 1, None
height: dp(27)
background_normal: 'data/but_{}.png'.format('light' if self.default else 'drk')
background_down: 'data/but_{}.png'.format('drk' if self.default else 'light')


<NavigationItem@Button>
background_color: background_color if self.state == 'normal' else (1, 1, 1, 1)
background_normal: ''
background_down: 'data/but_overlay.png'
on_release: app.root.ids.screen_manager.current = self.text


<ScreenSchedule@Screen>
TabbedPanel
Expand Down Expand Up @@ -138,7 +149,6 @@
time: '5:20pm - 6:00pm'
TabbedPanelItem
text: "Lecture Hall 1"

ScrollView
GridLayout
cols: 1
Expand Down Expand Up @@ -322,6 +332,10 @@

<ActionBox@ActionItem+BoxLayout>


###### Root widget starts here
######

NavigationDrawer
id: navigationdrawer
BoxLayout
Expand All @@ -335,19 +349,14 @@ NavigationDrawer
orientation: 'vertical'
NavigationItem:
text: 'Schedule'
on_release: screen_manager.current = 'scrn_schedule'
NavigationItem:
text: 'Location'
on_release: screen_manager.current = 'scrn_location'
NavigationItem:
text: 'Sponsors'
on_release: screen_manager.current = 'scrn_sponsors'
NavigationItem:
text: 'Tickets'
on_release: screen_manager.current = 'scrn_tickets'
NavigationItem:
text: 'About'
on_release: screen_manager.current = 'scrn_about'
Widget

BoxLayout:
Expand Down Expand Up @@ -376,14 +385,14 @@ NavigationDrawer
ScreenManager
id: screen_manager
ScreenSchedule
name: 'scrn_schedule'
name: 'Schedule'
ScreenMaps
name: 'scrn_location'
ScreenSponsors
name: 'scrn_sponsors'
name: 'Sponsors'
ScreenTickets
name: 'scrn_tickets'
name: 'Tickets'
ScreenAbout
name: 'scrn_about'
name: 'About'


0 comments on commit 8a495dc

Please sign in to comment.