Skip to content

Commit

Permalink
Renamed ViewPanel to rTorrentView
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen Sugden committed Dec 7, 2009
1 parent 127304c commit 0619096
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wrtc.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def __init__(self, parent, *args, **kwargs):
def load_views(self):
self.DeleteAllPages()
for view in self.views_to_load:
self.AddPage(ViewPanel(self, view), view.capitalize());
self.AddPage(rTorrentView(self, view), view.capitalize());
self.page_changed()

def page_changed(self, evt=None):
Expand All @@ -196,7 +196,7 @@ def page_changed(self, evt=None):
queue.clear()
queue.append(('download_list', page.title, page.set_list ))

class ViewPanel(ListCtrlAutoWidthMixin, wx.ListView):
class rTorrentView(ListCtrlAutoWidthMixin, wx.ListView):
_columns = [
{
"label": "Name",
Expand Down Expand Up @@ -262,12 +262,12 @@ class ViewPanel(ListCtrlAutoWidthMixin, wx.ListView):
]
def __init__(self, parent, title="default"):
wx.ListView.__init__(self, parent)
ListCtrlAutoWidthMixin.__init__(self)
self.setResizeColumn(0)
sizer = wx.BoxSizer(wx.VERTICAL)
self.tag_map = {}
self.title = title
self.create_columns()
ListCtrlAutoWidthMixin.__init__(self)
self.setResizeColumn(0)
self.joblist = MultiQueue()
self.joblist.put(5, ("download_list", self.title, self.set_list))

Expand Down

0 comments on commit 0619096

Please sign in to comment.