Updated to 0.18
This commit is contained in:
parent
03a6e537b8
commit
c3bbd75c65
@ -1,7 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
name = "Socializer"
|
name = "Socializer"
|
||||||
version = "0.17"
|
version = "0.18"
|
||||||
author = "Manuel Cortez"
|
author = "Manuel Cortez"
|
||||||
authorEmail = "manuel@manuelcortez.net"
|
authorEmail = "manuel@manuelcortez.net"
|
||||||
copyright = "Copyright (C) 2016-2018, Manuel Cortez"
|
copyright = "Copyright (C) 2016-2018, Manuel Cortez"
|
||||||
|
@ -17,16 +17,16 @@ class homeTab(wx.Panel):
|
|||||||
self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)
|
self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)
|
||||||
|
|
||||||
def create_post_buttons(self):
|
def create_post_buttons(self):
|
||||||
self.post = wx.Button(self, -1, _("&Post"))
|
self.postBox = wx.StaticBoxSizer(parent=self, orient=wx.HORIZONTAL, label=_("Actions"))
|
||||||
self.postBox = wx.BoxSizer(wx.HORIZONTAL)
|
self.post = wx.Button(self.postBox.GetStaticBox(), wx.NewId(), _("&Post"))
|
||||||
self.postBox.Add(self.post, 0, wx.ALL, 5)
|
self.postBox.Add(self.post, 0, wx.ALL, 5)
|
||||||
|
|
||||||
def __init__(self, parent):
|
def __init__(self, parent):
|
||||||
super(homeTab, self).__init__(parent=parent)
|
super(homeTab, self).__init__(parent=parent)
|
||||||
sizer = wx.BoxSizer(wx.VERTICAL)
|
sizer = wx.BoxSizer(wx.VERTICAL)
|
||||||
|
self.create_list()
|
||||||
self.create_post_buttons()
|
self.create_post_buttons()
|
||||||
sizer.Add(self.postBox, 0, wx.ALL, 5)
|
sizer.Add(self.postBox, 0, wx.ALL, 5)
|
||||||
self.create_list()
|
|
||||||
sizer.Add(self.lbl, 0, wx.ALL, 5)
|
sizer.Add(self.lbl, 0, wx.ALL, 5)
|
||||||
sizer.Add(self.list.list, 1, wx.EXPAND, 5)
|
sizer.Add(self.list.list, 1, wx.EXPAND, 5)
|
||||||
self.SetSizer(sizer)
|
self.SetSizer(sizer)
|
||||||
@ -56,9 +56,9 @@ class feedTab(homeTab):
|
|||||||
class communityTab(feedTab):
|
class communityTab(feedTab):
|
||||||
|
|
||||||
def create_post_buttons(self):
|
def create_post_buttons(self):
|
||||||
self.load = wx.Button(self, wx.NewId(), _("Load community"))
|
self.postBox = wx.StaticBoxSizer(parent=self, orient=wx.HORIZONTAL, label=_("Actions"))
|
||||||
self.post = wx.Button(self, -1, _("&Post"))
|
self.load = wx.Button(self.postBox.GetBoxSizer(), wx.NewId(), _("Load community"))
|
||||||
self.postBox = wx.BoxSizer(wx.HORIZONTAL)
|
self.post = wx.Button(self.postBox.GetStaticBox(), -1, _("&Post"))
|
||||||
self.postBox.Add(self.load, 0, wx.ALL, 5)
|
self.postBox.Add(self.load, 0, wx.ALL, 5)
|
||||||
self.postBox.Add(self.post, 0, wx.ALL, 5)
|
self.postBox.Add(self.post, 0, wx.ALL, 5)
|
||||||
|
|
||||||
@ -73,10 +73,10 @@ class audioTab(homeTab):
|
|||||||
self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)
|
self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)
|
||||||
|
|
||||||
def create_post_buttons(self):
|
def create_post_buttons(self):
|
||||||
self.post = wx.Button(self, -1, _("&Post"))
|
self.postBox = wx.StaticBoxSizer(parent=self, orient=wx.HORIZONTAL, label=_("Actions"))
|
||||||
self.play = wx.Button(self, -1, _("P&lay"))
|
self.post = wx.Button(self.postBox.GetStaticBox(), -1, _("&Post"))
|
||||||
self.play_all = wx.Button(self, -1, _("Play &All"))
|
self.play = wx.Button(self.postBox.GetStaticBox(), -1, _("P&lay"))
|
||||||
self.postBox = wx.BoxSizer(wx.HORIZONTAL)
|
self.play_all = wx.Button(self.postBox.GetStaticBox(), -1, _("Play &All"))
|
||||||
self.postBox.Add(self.post, 0, wx.ALL, 5)
|
self.postBox.Add(self.post, 0, wx.ALL, 5)
|
||||||
self.postBox.Add(self.play, 0, wx.ALL, 5)
|
self.postBox.Add(self.play, 0, wx.ALL, 5)
|
||||||
self.postBox.Add(self.play_all, 0, wx.ALL, 5)
|
self.postBox.Add(self.play_all, 0, wx.ALL, 5)
|
||||||
@ -84,11 +84,11 @@ class audioTab(homeTab):
|
|||||||
class audioAlbumTab(audioTab):
|
class audioAlbumTab(audioTab):
|
||||||
|
|
||||||
def create_post_buttons(self):
|
def create_post_buttons(self):
|
||||||
self.load = wx.Button(self, wx.NewId(), _("Load album"))
|
self.postBox = wx.StaticBoxSizer(parent=self, orient=wx.HORIZONTAL, label=_("Actions"))
|
||||||
self.post = wx.Button(self, -1, _("&Post"))
|
self.load = wx.Button(self.postBox.GetStaticBox(), wx.NewId(), _("Load album"))
|
||||||
self.play = wx.Button(self, -1, _("P&lay"))
|
self.post = wx.Button(self.postBox.GetStaticBox(), -1, _("&Post"))
|
||||||
self.play_all = wx.Button(self, -1, _("Play &All"))
|
self.play = wx.Button(self.postBox.GetStaticBox(), -1, _("P&lay"))
|
||||||
self.postBox = wx.BoxSizer(wx.HORIZONTAL)
|
self.play_all = wx.Button(self.postBox.GetStaticBox(), -1, _("Play &All"))
|
||||||
self.postBox.Add(self.load, 0, wx.ALL, 5)
|
self.postBox.Add(self.load, 0, wx.ALL, 5)
|
||||||
self.postBox.Add(self.post, 0, wx.ALL, 5)
|
self.postBox.Add(self.post, 0, wx.ALL, 5)
|
||||||
self.postBox.Add(self.play, 0, wx.ALL, 5)
|
self.postBox.Add(self.play, 0, wx.ALL, 5)
|
||||||
@ -211,9 +211,9 @@ class peopleTab(homeTab):
|
|||||||
self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)
|
self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)
|
||||||
|
|
||||||
def create_post_buttons(self):
|
def create_post_buttons(self):
|
||||||
self.post = wx.Button(self, -1, _("&Post"))
|
self.postBox = wx.StaticBoxSizer(parent=self, orient=wx.HORIZONTAL, label=_("Actions"))
|
||||||
self.new_chat = wx.Button(self, wx.NewId(), _("Send message"))
|
self.post = wx.Button(self.postBox.GetStaticBox(), -1, _("&Post"))
|
||||||
self.postBox = wx.BoxSizer(wx.HORIZONTAL)
|
self.new_chat = wx.Button(self.postBox.GetStaticBox(), wx.NewId(), _("Send message"))
|
||||||
self.postBox.Add(self.post, 0, wx.ALL, 5)
|
self.postBox.Add(self.post, 0, wx.ALL, 5)
|
||||||
self.postBox.Add(self.new_chat, 0, wx.ALL, 5)
|
self.postBox.Add(self.new_chat, 0, wx.ALL, 5)
|
||||||
|
|
||||||
@ -228,18 +228,18 @@ class videoTab(homeTab):
|
|||||||
self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)
|
self.list.list.Bind(wx.EVT_LIST_ITEM_ACTIVATED, self.OnKeyDown)
|
||||||
|
|
||||||
def create_post_buttons(self):
|
def create_post_buttons(self):
|
||||||
self.post = wx.Button(self, -1, _("&Post"))
|
self.postBox = wx.StaticBoxSizer(parent=self, orient=wx.HORIZONTAL, label=_("Actions"))
|
||||||
self.play = wx.Button(self, -1, _("P&lay"))
|
self.post = wx.Button(self.postBox.GetStaticBox(), -1, _("&Post"))
|
||||||
self.postBox = wx.BoxSizer(wx.HORIZONTAL)
|
self.play = wx.Button(self.postBox.GetStaticBox(), -1, _("P&lay"))
|
||||||
self.postBox.Add(self.post, 0, wx.ALL, 5)
|
self.postBox.Add(self.post, 0, wx.ALL, 5)
|
||||||
self.postBox.Add(self.play, 0, wx.ALL, 5)
|
self.postBox.Add(self.play, 0, wx.ALL, 5)
|
||||||
|
|
||||||
class videoAlbumTab(videoTab):
|
class videoAlbumTab(videoTab):
|
||||||
|
|
||||||
def create_post_buttons(self):
|
def create_post_buttons(self):
|
||||||
self.load = wx.Button(self, wx.NewId(), _("Load album"))
|
self.postBox = wx.BoxSizer(parent=self, orient=wx.HORIZONTAL, label=_("Actions"))
|
||||||
self.post = wx.Button(self, -1, _("&Post"))
|
self.load = wx.Button(self.postBox.GetStaticBox(), wx.NewId(), _("Load album"))
|
||||||
self.play = wx.Button(self, -1, _("P&lay"))
|
self.post = wx.Button(self.postBox.GetStaticBox(), -1, _("&Post"))
|
||||||
self.postBox = wx.BoxSizer(wx.HORIZONTAL)
|
self.play = wx.Button(self.postBox.GetStaticBox(), -1, _("P&lay"))
|
||||||
self.postBox.Add(self.post, 0, wx.ALL, 5)
|
self.postBox.Add(self.post, 0, wx.ALL, 5)
|
||||||
self.postBox.Add(self.play, 0, wx.ALL, 5)
|
self.postBox.Add(self.play, 0, wx.ALL, 5)
|
||||||
|
Loading…
Reference in New Issue
Block a user