More WX Python 4 changes
This commit is contained in:
parent
3e43f67ee2
commit
72348008a2
@ -301,7 +301,7 @@ class baseBuffer(object):
|
|||||||
post = self.get_post()
|
post = self.get_post()
|
||||||
original_date = arrow.get(post["date"])
|
original_date = arrow.get(post["date"])
|
||||||
created_at = original_date.humanize(locale=languageHandler.getLanguage())
|
created_at = original_date.humanize(locale=languageHandler.getLanguage())
|
||||||
self.tab.list.list.SetStringItem(self.tab.list.get_selected(), 2, created_at)
|
self.tab.list.list.SetItem(self.tab.list.get_selected(), 2, created_at)
|
||||||
|
|
||||||
class feedBuffer(baseBuffer):
|
class feedBuffer(baseBuffer):
|
||||||
""" This buffer represents an user's wall. It may be used either for the current user or someone else."""
|
""" This buffer represents an user's wall. It may be used either for the current user or someone else."""
|
||||||
@ -760,7 +760,7 @@ class peopleBuffer(feedBuffer):
|
|||||||
if post.has_key("last_seen") == False: return
|
if post.has_key("last_seen") == False: return
|
||||||
original_date = arrow.get(post["last_seen"]["time"])
|
original_date = arrow.get(post["last_seen"]["time"])
|
||||||
created_at = original_date.humanize(locale=languageHandler.getLanguage())
|
created_at = original_date.humanize(locale=languageHandler.getLanguage())
|
||||||
self.tab.list.list.SetStringItem(self.tab.list.get_selected(), 1, created_at)
|
self.tab.list.list.SetItem(self.tab.list.get_selected(), 1, created_at)
|
||||||
|
|
||||||
def open_timeline(self, *args, **kwargs):
|
def open_timeline(self, *args, **kwargs):
|
||||||
pass
|
pass
|
||||||
|
@ -29,7 +29,7 @@ def get_user(id, profiles):
|
|||||||
for i in profiles:
|
for i in profiles:
|
||||||
if i["id"] == id:
|
if i["id"] == id:
|
||||||
return u"{0} {1}".format(i["first_name"], i["last_name"])
|
return u"{0} {1}".format(i["first_name"], i["last_name"])
|
||||||
# Translators: This string is user when socializer can't find the right user information.
|
# Translators: This string is used when socializer can't find the right user information.
|
||||||
return _(u"Unknown username")
|
return _(u"Unknown username")
|
||||||
|
|
||||||
def get_message(status):
|
def get_message(status):
|
||||||
|
@ -37,7 +37,7 @@ class basicPost(widgetUtils.BaseDialog):
|
|||||||
return box
|
return box
|
||||||
|
|
||||||
def create_photo_viewer(self):
|
def create_photo_viewer(self):
|
||||||
self.image = wx.StaticBitmap(self.panel, bitmap=wx.EmptyBitmap(1280, 860), size=(604, 604))
|
self.image = wx.StaticBitmap(self.panel, bitmap=wx.Bitmap(1280, 860), size=(604, 604))
|
||||||
self.sizer.Add(self.image, 1, wx.ALL, 10)
|
self.sizer.Add(self.image, 1, wx.ALL, 10)
|
||||||
self.previous_photo = wx.Button(self.panel, wx.NewId(), _(u"Previous photo"))
|
self.previous_photo = wx.Button(self.panel, wx.NewId(), _(u"Previous photo"))
|
||||||
self.view_photo = wx.Button(self.panel, wx.NewId(), _(u"View in full screen"))
|
self.view_photo = wx.Button(self.panel, wx.NewId(), _(u"View in full screen"))
|
||||||
|
Loading…
Reference in New Issue
Block a user