Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Workshop.activity/Workshop.py
diff options
context:
space:
mode:
authorCharlie <charlie@tutorius-dev.(none)>2009-12-07 18:59:03 (GMT)
committer Charlie <charlie@tutorius-dev.(none)>2009-12-07 18:59:03 (GMT)
commit3618ba9ab56baf8119e7c4eff373f2700a0dc53e (patch)
tree025b2a09bf34e2899ef210b01990f5fb3cca5882 /Workshop.activity/Workshop.py
parent410da49824e3a310829a1d02e8f8b488b227d702 (diff)
Can start activity from workshop if related activities are open
Diffstat (limited to 'Workshop.activity/Workshop.py')
-rw-r--r--Workshop.activity/Workshop.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Workshop.activity/Workshop.py b/Workshop.activity/Workshop.py
index 857bf8c..09ac402 100644
--- a/Workshop.activity/Workshop.py
+++ b/Workshop.activity/Workshop.py
@@ -257,7 +257,7 @@ class SearchBar(gtk.HBox):
self.sort_combo.connect("changed",self.controller.sort_selection_changed,None)
class WorkshopDetail(gtk.VBox):
- def __init__(self,tutorial,controller):
+ def __init__(self,tutorial,controller,rating_editable=False):
"""
Constructor
@@ -302,7 +302,7 @@ class WorkshopDetail(gtk.VBox):
label_holder.pack_start(self.title_label)
label_holder.pack_start(self.author_label)
- self.rating = Rating(tutorial,controller,rating = tutorial.rating)
+ self.rating = Rating(tutorial,controller,tutorial.rating,rating_editable)
second_row = gtk.HBox(False)
second_row.pack_start(icon,False,False)
@@ -359,7 +359,7 @@ class WorkshopListItem(gtk.Alignment):
"""
A list item containing the details of a tutorial
"""
- def __init__(self,tutorial,controller):
+ def __init__(self,tutorial,controller,rating_editable=False):
"""
Constructor
@@ -388,7 +388,7 @@ class WorkshopListItem(gtk.Alignment):
self.icon = gtk.Image()
self.icon.set_from_file('icon.svg')
- self.rating = Rating(tutorial,controller,tutorial.rating, True)
+ self.rating = Rating(tutorial,controller,tutorial.rating,rating_editable)
#Add the controls to the table
self.table.attach(self.icon,0,1,0,1,0,0)
@@ -408,7 +408,7 @@ class WorkshopListItem(gtk.Alignment):
class MyTutorialListItem(WorkshopListItem):
def __init__(self,tutorial,controller):
- WorkshopListItem.__init__(self,tutorial,controller)
+ WorkshopListItem.__init__(self,tutorial,controller,False)
self.last_row = gtk.HBox(False,15)
self.btn_launch = gtk.Button('Launch')
@@ -427,7 +427,7 @@ class MyTutorialListItem(WorkshopListItem):
class MyTutorialDetail(WorkshopDetail):
def __init__(self,tutorial,controller):
- WorkshopDetail.__init__(self,tutorial,controller)
+ WorkshopDetail.__init__(self,tutorial,controller,False)
#The bottom of the screen contains the button(fourth and fifth row
self.launch_button = gtk.Button('Launch')