2022-11-08 13:18:04 -06:00
# -*- coding: utf-8 -*-
import wx
import application
def boost_question ( ) :
result = False
2022-11-16 13:28:45 -06:00
dlg = wx . MessageDialog ( None , _ ( " Would you like to share this post? " ) , _ ( " Boost " ) , wx . YES_NO | wx . ICON_QUESTION )
2022-11-08 13:18:04 -06:00
if dlg . ShowModal ( ) == wx . ID_YES :
result = True
dlg . Destroy ( )
return result
2022-11-16 13:28:45 -06:00
def delete_post_dialog ( ) :
2022-11-08 13:18:04 -06:00
result = False
2022-11-16 13:28:45 -06:00
dlg = wx . MessageDialog ( None , _ ( " Do you really want to delete this post? It will be deleted from the instance as well. " ) , _ ( " Delete " ) , wx . ICON_QUESTION | wx . YES_NO )
2022-11-08 13:18:04 -06:00
if dlg . ShowModal ( ) == wx . ID_YES :
result = True
dlg . Destroy ( )
return result
def clear_list ( ) :
result = False
dlg = wx . MessageDialog ( None , _ ( " Do you really want to empty this buffer? It ' s items will be removed from the list but not from the instance " ) , _ ( u " Empty buffer " ) , wx . ICON_QUESTION | wx . YES_NO )
if dlg . ShowModal ( ) == wx . ID_YES :
result = True
dlg . Destroy ( )
return result
2022-11-16 13:28:45 -06:00
def no_posts ( ) :
dlg = wx . MessageDialog ( None , _ ( " This user has no posts. {0} can ' t create a timeline. " ) . format ( application . name ) , _ ( u " Error " ) , wx . ICON_ERROR )
2022-11-08 13:18:04 -06:00
dlg . ShowModal ( )
dlg . Destroy ( )
def no_favs ( ) :
2022-11-16 13:28:45 -06:00
dlg = wx . MessageDialog ( None , _ ( u " This user has no favorited posts. {0} can ' t create a timeline. " ) . format ( application . name ) , _ ( u " Error " ) , wx . ICON_ERROR )
2022-11-08 13:18:04 -06:00
dlg . ShowModal ( )
dlg . Destroy ( )
def no_followers ( ) :
dlg = wx . MessageDialog ( None , _ ( u " This user has no followers yet. {0} can ' t create a timeline. " ) . format ( application . name ) , _ ( u " Error " ) , wx . ICON_ERROR )
dlg . ShowModal ( )
dlg . Destroy ( )
def no_following ( ) :
dlg = wx . MessageDialog ( None , _ ( " This user is not following anyone. {0} can ' t create a timeline. " ) . format ( application . name ) , _ ( u " Error " ) , wx . ICON_ERROR )
dlg . ShowModal ( )
dlg . Destroy ( )