Compare commits

..

27 Commits

Author SHA1 Message Date
e23a52e38f Changes in TWBlue keys 2021-10-27 15:29:15 -05:00
a5ba80feee Final touches 2021-10-26 16:18:53 -05:00
528ecc2a33 Updated NSI file 2021-10-26 16:16:03 -05:00
3519746078 Move installer Nsis file to a new name 2021-10-26 15:47:03 -05:00
ef79e0696e Move updated Nsis script to artifacts in build stage 2021-10-26 15:19:57 -05:00
b9ee0dae5b Fixed a typo in installer script 2021-10-26 14:48:58 -05:00
f31575a733 Merge pull request #408 from manuelcortez/calendar_versioning
Switch to Calendar versioning
2021-10-26 13:52:21 -05:00
e451bbd5e9 Merge pull request #407 from manuelcortez/alias_manager
Alias manager Dialog. Closes #401
2021-10-26 13:51:09 -05:00
f7f303929e Updated CI config 2021-10-26 13:41:22 -05:00
9f48784ce4 Added script to add next version in application.py and installer generation files 2021-10-26 13:39:50 -05:00
cb1312d0c9 Changed version in installer so it will be easier to replace it later by the authomatic script 2021-10-26 13:38:21 -05:00
a82efd4dcc Fixed a typo 2021-10-26 13:16:31 -05:00
72e6d030d5 Updater no longer will try to compare float numbers for updates 2021-10-26 13:10:57 -05:00
d222740887 Updated gitlab CI 2021-10-26 13:04:49 -05:00
2b059ee42e Modified Nsis scripts to remove references to old snapshots code 2021-10-26 13:02:24 -05:00
daac312658 Removes snapshot information from app info 2021-10-26 12:43:03 -05:00
b23be9c896 Started to remove stable and snapshot update information files 2021-10-26 12:40:57 -05:00
61b0dc34b8 Merge branch 'next-gen' into alias_manager 2021-10-26 10:48:43 -05:00
c5d13369eb Merge branch 'next-gen' of github.com:manuelcortez/twblue into next-gen 2021-10-26 10:47:55 -05:00
856ecf5eb9 Merge branch 'next-gen' of github.com:manuelcortez/twblue into alias_manager 2021-10-26 10:46:30 -05:00
e3e0ac9457 Added an alias manager dialog in the application menu 2021-10-26 10:45:11 -05:00
34c1f69ec1 Merge pull request #404 from nidza07/SerbianTranslation
Updated Serbian translation
2021-10-22 12:57:58 -05:00
7326ff88f9 Merge pull request #405 from Oreonan/fr_211021
Update french interface
2021-10-22 12:56:55 -05:00
Oreonan
a8d876a7b7 Fix last-translator e-mail 2021-10-21 17:02:03 +02:00
Oreonan
89fa6435b4 Update french interface 2021-10-21 16:58:32 +02:00
Nikola Jovic
d1bd393be2 Updated Serbian translation 2021-10-21 16:30:46 +02:00
José Manuel Delicado Alcolea
a2f25bfbb5 Added charset-normalizer to requirements 2021-10-12 17:05:09 +02:00
19 changed files with 1198 additions and 1005 deletions

View File

@@ -8,7 +8,7 @@ stages:
- make_installer
- upload
snapshot32:
twblue32:
tags:
- shared-windows
- windows
@@ -21,7 +21,6 @@ snapshot32:
- '&$env:PYTHON -V'
- '&$env:PYTHON -m pip install --upgrade pip'
- '&$env:PYTHON -m pip install --upgrade -r requirements.txt'
- '&$env:PYTHON -m pip uninstall enum34 -y'
stage: build
interruptible: true
script:
@@ -30,6 +29,7 @@ snapshot32:
- '&$env:PYTHON documentation_importer.py'
- cd ..\src
- '&$env:PYTHON ..\doc\generator.py'
- '&$env:PYTHON write_version_data.py'
- '&$env:PYTHON setup.py build'
- cd ..
- mkdir artifacts
@@ -37,7 +37,9 @@ snapshot32:
- '&$env:PYTHON make_archive.py'
- cd ..
- mv src/dist artifacts/TWBlue
- move src/twblue.zip artifacts/twblue_snapshot_x86.zip
- move src/twblue.zip artifacts/twblue_x86.zip
# Move the generated script nsis file to artifacts, so we won't need python when generating the installer.
- move scripts/twblue.nsi artifacts/twblue.nsi
only:
- tags
artifacts:
@@ -45,7 +47,7 @@ snapshot32:
- artifacts
expire_in: 1 day
snapshot64:
twblue64:
tags:
- shared-windows
- windows
@@ -66,6 +68,7 @@ snapshot64:
- '&$env:PYTHON documentation_importer.py'
- cd ..\src
- '&$env:PYTHON ..\doc\generator.py'
- '&$env:PYTHON write_version_data.py'
- '&$env:PYTHON setup.py build'
- cd ..
- mkdir artifacts
@@ -73,7 +76,7 @@ snapshot64:
- '&$env:PYTHON make_archive.py'
- cd ..
- mv src/dist artifacts/TWBlue64
- move src/twblue.zip artifacts/twblue_snapshot_x64.zip
- move src/twblue.zip artifacts/twblue_x64.zip
only:
- tags
artifacts:
@@ -95,9 +98,10 @@ generate_versions:
script:
- move artifacts/TWBlue scripts/
- move artifacts/TWBlue64 scripts/
- move artifacts/twblue.nsi scripts/installer.nsi
- cd scripts
- '&$env:NSIS twblue_snapshot.nsi'
- move twblue_snapshot_setup.exe ../artifacts
- '&$env:NSIS installer.nsi'
- move twblue_setup.exe ../artifacts
only:
- tags
artifacts:

View File

@@ -2,6 +2,7 @@
## changes in this version
* Added an user alias manager, located in the application menu in the menu bar. From this dialog, it is possible to review, add, edit or remove user aliases for the current account. ([#401](https://github.com/manuelcortez/TWBlue/issues/401))
* TWBlue now closes the VLC player window automatically when a video reaches its end. ([#399](https://github.com/manuelcortez/TWBlue/issues/399))
* After a lot of time, TWBlue now uses a new default Soundpack, called FreakyBlue. This soundpack will be set by default in all new sessions created in the application. Thanks to [Andre Louis](https://twitter.com/FreakyFwoof) for the pack. ([#247](https://github.com/manuelcortez/TWBlue/issues/247))
* When reading a tweet, if the tweet contains more than 2 consecutive mentions, TWBlue will announce how many more users the tweet includes, as opposed to read every user in the conversation. You still can display the tweet to read all users.

View File

@@ -47,6 +47,7 @@ attrs
importlib-metadata
numpy
pillow
charset-normalizer
git+https://github.com/accessibleapps/libloader
git+https://github.com/accessibleapps/platform_utils
git+https://github.com/accessibleapps/accessible_output2

View File

@@ -15,10 +15,10 @@ SetCompressor /solid lzma
SetDatablockOptimize on
VIAddVersionKey ProductName "TWBlue"
VIAddVersionKey LegalCopyright "Copyright 2014-2021 Manuel Cortéz."
VIAddVersionKey ProductVersion "0.95"
VIAddVersionKey FileVersion "0.95"
VIProductVersion "0.95.0.0"
VIFileVersion "0.95.0.0"
VIAddVersionKey ProductVersion "0.95.0"
VIAddVersionKey FileVersion "0.95.0"
VIProductVersion "0.95.0"
VIFileVersion "0.95.0"
!insertmacro MUI_PAGE_WELCOME
!define MUI_LICENSEPAGE_RADIOBUTTONS
!insertmacro MUI_PAGE_LICENSE "license.txt"
@@ -32,7 +32,7 @@ var StartMenuFolder
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "French"
!insertmacro MUI_LANGUAGE "Spanish"
!insertmacro MUI_LANGUAGE "Italian"
@@ -73,9 +73,9 @@ WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "U
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" "InstallLocation" $INSTDIR
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" "Publisher" "Manuel Cortéz"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "DisplayVersion" "0.95"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "URLInfoAbout" "http://twblue.es"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "URLInfoAbout" "https://twblue.es"
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "VersionMajor" 0
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "VersionMinor" 95
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "VersionMinor" 0
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "NoRepair" 1
SectionEnd

View File

@@ -1,95 +0,0 @@
!include "MUI2.nsh"
!include "LogicLib.nsh"
!include "x64.nsh"
Unicode true
CRCCheck on
ManifestSupportedOS all
XPStyle on
Name "TWBlue"
OutFile "TWBlue_snapshot_setup.exe"
InstallDir "$PROGRAMFILES\twblue"
InstallDirRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "InstallLocation"
RequestExecutionLevel admin
SetCompress auto
SetCompressor /solid lzma
SetDatablockOptimize on
VIAddVersionKey ProductName "TWBlue Snapshot version"
VIAddVersionKey LegalCopyright "Copyright 2014-2021 Manuel Cortéz."
VIAddVersionKey ProductVersion "11"
VIAddVersionKey FileVersion "11"
VIProductVersion "11.0.0.0"
VIFileVersion "11.0.0.0"
!insertmacro MUI_PAGE_WELCOME
!define MUI_LICENSEPAGE_RADIOBUTTONS
!insertmacro MUI_PAGE_LICENSE "license.txt"
!insertmacro MUI_PAGE_DIRECTORY
var StartMenuFolder
!insertmacro MUI_PAGE_STARTMENU startmenu $StartMenuFolder
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_LINK "Visit TWBlue website"
!define MUI_FINISHPAGE_LINK_LOCATION "https://twblue.es"
!define MUI_FINISHPAGE_RUN "$INSTDIR\TWBlue.exe"
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
!insertmacro MUI_LANGUAGE "French"
!insertmacro MUI_LANGUAGE "Spanish"
!insertmacro MUI_LANGUAGE "Italian"
!insertmacro MUI_LANGUAGE "Finnish"
!insertmacro MUI_LANGUAGE "Russian"
!insertmacro MUI_LANGUAGE "PortugueseBR"
!insertmacro MUI_LANGUAGE "Polish"
!insertmacro MUI_LANGUAGE "German"
!insertmacro MUI_LANGUAGE "Hungarian"
!insertmacro MUI_LANGUAGE "Turkish"
!insertmacro MUI_LANGUAGE "Arabic"
!insertmacro MUI_LANGUAGE "Galician"
!insertmacro MUI_LANGUAGE "Catalan"
!insertmacro MUI_LANGUAGE "Basque"
!insertmacro MUI_LANGUAGE "Croatian"
!insertmacro MUI_LANGUAGE "Japanese"
!insertmacro MUI_LANGUAGE "SerbianLatin"
!insertmacro MUI_LANGUAGE "Romanian"
!insertmacro MUI_RESERVEFILE_LANGDLL
Section
SetShellVarContext All
SetOutPath "$INSTDIR"
${If} ${RunningX64}
File /r TWBlue64\*
${Else}
File /r TWBlue\*
${EndIf}
CreateShortCut "$DESKTOP\TWBlue.lnk" "$INSTDIR\TWBlue.exe"
!insertmacro MUI_STARTMENU_WRITE_BEGIN startmenu
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\TWBlue.lnk" "$INSTDIR\TWBlue.exe"
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\TWBlue on the web.lnk" "http://twblue.es"
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
!insertmacro MUI_STARTMENU_WRITE_END
WriteUninstaller "$INSTDIR\Uninstall.exe"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "DisplayName" "TWBlue"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "UninstallString" '"$INSTDIR\uninstall.exe"'
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" "InstallLocation" $INSTDIR
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall" "Publisher" "Manuel Cortéz"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "DisplayVersion" "11"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "URLInfoAbout" "https://twblue.es"
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "VersionMajor" 0
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "VersionMinor" 0
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue" "NoRepair" 1
SectionEnd
Section "Uninstall"
SetShellVarContext All
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\twblue"
RMDir /r /REBOOTOK $INSTDIR
Delete "$DESKTOP\TWBlue.lnk"
!insertmacro MUI_STARTMENU_GETFOLDER startmenu $StartMenuFolder
RMDir /r "$SMPROGRAMS\$StartMenuFolder"
SectionEnd
Function .onInit
${If} ${RunningX64}
StrCpy $instdir "$programfiles64\twblue"
${EndIf}
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd

View File

@@ -3,15 +3,8 @@ import datetime
name = 'TWBlue'
short_name='twblue'
snapshot = True
if snapshot == False:
version = "0.95"
update_url = 'https://twblue.es/updates/stable.php'
mirror_update_url = 'https://raw.githubusercontent.com/manuelcortez/TWBlue/next-gen/updates/stable.json'
else:
version = "11"
update_url = 'https://twblue.es/updates/snapshot.php'
mirror_update_url = 'https://raw.githubusercontent.com/manuelcortez/TWBlue/next-gen/updates/snapshots.json'
update_url = 'https://twblue.es/updates/updates.php'
mirror_update_url = 'https://raw.githubusercontent.com/manuelcortez/TWBlue/next-gen/updates/updates.json'
authors = ["Manuel Cortéz", "José Manuel Delicado"]
authorEmail = "manuel@manuelcortez.net"
copyright = "Copyright (C) 2013-2021, Manuel cortéz."
@@ -20,3 +13,4 @@ translators = ["Manuel Cortéz (English)", "Mohammed Al Shara, Hatoun Felemban (
url = u"https://twblue.es"
report_bugs_url = "https://github.com/manuelcortez/twblue/issues"
supported_languages = []
version = "11"

View File

@@ -2,6 +2,7 @@
import platform
system = platform.system()
import application
import wx
import requests
from audio_services import youtube_utils
import arrow
@@ -24,6 +25,7 @@ from sessions.twitter import utils, compose
from sessionmanager import manager, sessionManager
from controller import buffers
from . import messages
from . import userAliasController
import sessions
from sessions.twitter import session as session_
from pubsub import pub
@@ -189,6 +191,7 @@ class Controller(object):
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.add_to_list, self.view.addToList)
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.remove_from_list, self.view.removeFromList)
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.update_buffer, self.view.update_buffer)
widgetUtils.connect_event(self.view, widgetUtils.MENU, self.manage_aliases, self.view.manageAliases)
def set_systray_icon(self):
self.systrayIcon = sysTrayIcon.SysTrayIcon()
@@ -756,6 +759,11 @@ class Controller(object):
buff.session.settings["user-aliases"][str(user_id)] = alias
buff.session.settings.write()
output.speak(_("Alias has been set correctly for {}.").format(user))
pub.sendMessage("alias-added")
def manage_aliases(self, *args, **kwargs):
buff = self.get_best_buffer()
alias_controller = userAliasController.userAliasController(buff.session.settings)
def post_tweet(self, event=None):
buffer = self.get_best_buffer()

View File

@@ -0,0 +1,53 @@
# -*- coding: utf-8 -*-
import widgetUtils
from pubsub import pub
from wxUI.dialogs import userAliasDialogs
from extra import autocompletionUsers
class userAliasController(object):
def __init__(self, settings):
super(userAliasController, self).__init__()
self.settings = settings
self.dialog = userAliasDialogs.userAliasEditorDialog()
self.update_aliases_manager()
widgetUtils.connect_event(self.dialog.add, widgetUtils.BUTTON_PRESSED, self.on_add)
widgetUtils.connect_event(self.dialog.edit, widgetUtils.BUTTON_PRESSED, self.on_edit)
widgetUtils.connect_event(self.dialog.remove, widgetUtils.BUTTON_PRESSED, self.on_remove)
pub.subscribe(self.update_aliases_manager, "alias-added")
self.dialog.ShowModal()
def update_aliases_manager(self):
self.dialog.users.Clear()
aliases = [self.settings["user-aliases"].get(k) for k in self.settings["user-aliases"].keys()]
if len(aliases) > 0:
self.dialog.users.InsertItems(aliases, 0)
self.dialog.on_selection_changes()
def on_add(self, *args, **kwargs):
pub.sendMessage("execute-action", action="add_alias")
def on_edit(self, *args, **kwargs):
selection = self.dialog.get_selected_user()
if selection != "":
edited = self.dialog.edit_alias_dialog(_("Edit alias for {}").format(selection))
if edited == None or edited == "":
return
for user_key in self.settings["user-aliases"].keys():
if self.settings["user-aliases"][user_key] == selection:
self.settings["user-aliases"][user_key] = edited
self.settings.write()
self.update_aliases_manager()
break
def on_remove(self, *args, **kwargs):
selection = self.dialog.get_selected_user()
if selection == None or selection == "":
return
should_remove = self.dialog.remove_alias_dialog()
if should_remove:
for user_key in self.settings["user-aliases"].keys():
if self.settings["user-aliases"][user_key] == selection:
self.settings["user-aliases"].pop(user_key)
self.settings.write()
self.update_aliases_manager()
break

View File

@@ -1,9 +1,9 @@
msgid ""
msgstr ""
"Project-Id-Version: TW Blue 0.94\n"
"POT-Creation-Date: 2021-08-28 08:34+Paris, Madrid (heure d’été)\n"
"PO-Revision-Date: 2021-08-28 08:37+0200\n"
"Last-Translator: Corentin BACQUÉ-CAZENAVE <corentin@progaccess33.net>\n"
"POT-Creation-Date: 2021-10-21 16:55+Paris, Madrid (heure d’été)\n"
"PO-Revision-Date: 2021-10-21 17:01+0200\n"
"Last-Translator: Oreonan <corentin@progaccess.net>\n"
"Language-Team: Oreonan <corentin@progaccess.net>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
@@ -25,60 +25,59 @@ msgid "This action is not supported for this buffer"
msgstr "Cette action n'est pas supportée pour ce tampon"
#: ../src\controller\buffers\twitter\base.py:70
#: ../src\controller\mainController.py:309 ../src\controller\settings.py:286
#: ../src\controller\mainController.py:334 ../src\controller\settings.py:286
msgid "Home"
msgstr "Accueil"
#: ../src\controller\buffers\twitter\base.py:70
#: ../src\controller\mainController.py:313 ../src\controller\settings.py:287
#: ../src\controller\mainController.py:336 ../src\controller\settings.py:287
msgid "Mentions"
msgstr "Mentions"
#: ../src\controller\buffers\twitter\base.py:70
#: ../src\controller\mainController.py:317
#: ../src\controller\mainController.py:338
msgid "Direct messages"
msgstr "Messages privés"
#: ../src\controller\buffers\twitter\base.py:70
#: ../src\controller\mainController.py:321 ../src\controller\settings.py:289
#: ../src\controller\mainController.py:340 ../src\controller\settings.py:289
msgid "Sent direct messages"
msgstr "Messages privés envoyés"
#: ../src\controller\buffers\twitter\base.py:70
#: ../src\controller\mainController.py:325 ../src\controller\settings.py:290
#: ../src\controller\mainController.py:342 ../src\controller\settings.py:290
msgid "Sent tweets"
msgstr "Tweets envoyés"
#: ../src\controller\buffers\twitter\base.py:70
#: ../src\controller\mainController.py:329
#: ../src\controller\mainController.py:1400 ../src\controller\settings.py:291
#: ../src\controller\mainController.py:344
#: ../src\controller\mainController.py:1382 ../src\controller\settings.py:291
msgid "Likes"
msgstr "Favoris"
#: ../src\controller\buffers\twitter\base.py:70
#: ../src\controller\mainController.py:333
#: ../src\controller\mainController.py:1405 ../src\controller\settings.py:292
#: ../src\controller\mainController.py:346
#: ../src\controller\mainController.py:1387 ../src\controller\settings.py:292
msgid "Followers"
msgstr "Abonnés"
#: ../src\controller\buffers\twitter\base.py:70
#: ../src\controller\mainController.py:337
#: ../src\controller\mainController.py:1410 ../src\controller\settings.py:293
msgid "Friends"
msgstr "Abonnements"
#: ../src\controller\buffers\twitter\base.py:70
#: ../src\controller\mainController.py:341
#: ../src\controller\mainController.py:1415 ../src\controller\settings.py:294
#: ../src\controller\mainController.py:350
#: ../src\controller\mainController.py:1397 ../src\controller\settings.py:294
msgid "Blocked users"
msgstr "Utilisateurs bloqués"
#: ../src\controller\buffers\twitter\base.py:70
#: ../src\controller\mainController.py:345
#: ../src\controller\mainController.py:1420 ../src\controller\settings.py:295
#: ../src\controller\mainController.py:352
#: ../src\controller\mainController.py:1402 ../src\controller\settings.py:295
msgid "Muted users"
msgstr "Utilisateurs masqués"
#: ../src\controller\buffers\twitter\base.py:70
#: ../src\controller\mainController.py:1392 ../src\controller\settings.py:293
msgid "Friends"
msgstr "Abonnements"
#: ../src\controller\buffers\twitter\base.py:76
msgid "{username}'s timeline"
msgstr "Chronologie de {username}"
@@ -209,79 +208,84 @@ msgstr "{0} nouvel abonné"
msgid "This action is not supported in the buffer, yet."
msgstr "Cette action n'est pas supportée pour le tampon actuel"
#: ../src\controller\mainController.py:273
#: ../src\controller\mainController.py:274
msgid "Ready"
msgstr "Prêt"
#: ../src\controller\mainController.py:348
msgid "Following"
msgstr "Suivi"
#: ../src\controller\mainController.py:353
msgid "Timelines"
msgstr "Chronologies"
#: ../src\controller\mainController.py:352
#: ../src\controller\mainController.py:892
#: ../src\controller\mainController.py:1596
#: ../src\controller\mainController.py:356
#: ../src\controller\mainController.py:875
#: ../src\controller\mainController.py:1577
msgid "Timeline for {}"
msgstr "Chronologie de {}"
#: ../src\controller\mainController.py:355
#: ../src\controller\mainController.py:357
msgid "Likes timelines"
msgstr "Chronologies des favoris"
#: ../src\controller\mainController.py:359
#: ../src\controller\mainController.py:911
#: ../src\controller\mainController.py:1598
#: ../src\controller\mainController.py:360
#: ../src\controller\mainController.py:894
#: ../src\controller\mainController.py:1579
msgid "Likes for {}"
msgstr "Favoris de {}"
#: ../src\controller\mainController.py:362
msgid "Followers' Timelines"
#: ../src\controller\mainController.py:361
msgid "Followers timelines"
msgstr "Chronologies des abonnés"
#: ../src\controller\mainController.py:366
#: ../src\controller\mainController.py:930
#: ../src\controller\mainController.py:1600
#: ../src\controller\mainController.py:364
#: ../src\controller\mainController.py:913
#: ../src\controller\mainController.py:1581
msgid "Followers for {}"
msgstr "Abonnés de {}"
#: ../src\controller\mainController.py:369
msgid "Friends' Timelines"
#: ../src\controller\mainController.py:365
msgid "Following timelines"
msgstr "Chronologies des abonnements"
#: ../src\controller\mainController.py:373
#: ../src\controller\mainController.py:949
#: ../src\controller\mainController.py:1602
#: ../src\controller\mainController.py:368
#: ../src\controller\mainController.py:932
#: ../src\controller\mainController.py:1583
msgid "Friends for {}"
msgstr "Abonnements de {}"
#: ../src\controller\mainController.py:376 ../src\wxUI\dialogs\lists.py:13
#: ../src\controller\mainController.py:369 ../src\wxUI\dialogs\lists.py:13
msgid "Lists"
msgstr "Listes"
#: ../src\controller\mainController.py:381
#: ../src\controller\mainController.py:1432
#: ../src\controller\mainController.py:372
#: ../src\controller\mainController.py:1414
msgid "List for {}"
msgstr "Liste {}"
#: ../src\controller\mainController.py:384
#: ../src\controller\mainController.py:373
msgid "Searches"
msgstr "Recherches"
#: ../src\controller\mainController.py:388
#: ../src\controller\mainController.py:447
#: ../src\controller\mainController.py:376
#: ../src\controller\mainController.py:423
#: ../src\controller\mainController.py:428
msgid "Search for {}"
msgstr "Recherche de {}"
#: ../src\controller\mainController.py:394
#: ../src\controller\mainController.py:991
#: ../src\controller\mainController.py:378
#: ../src\controller\mainController.py:974
msgid "Trending topics for %s"
msgstr "Tendances pour %s"
#: ../src\controller\mainController.py:464
#: ../src\controller\mainController.py:480
#: ../src\controller\mainController.py:1089
#: ../src\controller\mainController.py:1108
#: ../src\controller\mainController.py:1127
#: ../src\controller\mainController.py:1146
#: ../src\controller\mainController.py:445
#: ../src\controller\mainController.py:461
#: ../src\controller\mainController.py:1072
#: ../src\controller\mainController.py:1091
#: ../src\controller\mainController.py:1110
#: ../src\controller\mainController.py:1129
msgid ""
"No session is currently in focus. Focus a session with the next or previous "
"session shortcut."
@@ -289,152 +293,152 @@ msgstr ""
"Aucune session n'a actuellement le focus. Sélectionnez-en une avec le "
"raccourci pour la session précédente ou suivante."
#: ../src\controller\mainController.py:468
#: ../src\controller\mainController.py:449
msgid "Empty buffer."
msgstr "Tampon vide."
#: ../src\controller\mainController.py:475
#: ../src\controller\mainController.py:456
msgid "{0} not found."
msgstr "{0} introuvable."
#: ../src\controller\mainController.py:485
#: ../src\controller\mainController.py:466
msgid "Filters cannot be applied on this buffer"
msgstr "Les filtres ne peuvent pas s'appliquer à ce tampon"
#: ../src\controller\mainController.py:538
#: ../src\controller\mainController.py:555
#: ../src\controller\mainController.py:583
#: ../src\controller\mainController.py:519
#: ../src\controller\mainController.py:536
#: ../src\controller\mainController.py:565
msgid "Select the user"
msgstr "Sélectionnez l'utilisateur"
#: ../src\controller\mainController.py:767
#: ../src\controller\mainController.py:750
msgid "Add an user alias"
msgstr "Ajoute un alis pour l'utilisateur"
#: ../src\controller\mainController.py:775
#: ../src\controller\mainController.py:758
msgid "Alias has been set correctly for {}."
msgstr "L'alias pour {} a correctement été définie"
#: ../src\controller\mainController.py:838 ../src\controller\messages.py:245
#: ../src\controller\mainController.py:821 ../src\controller\messages.py:245
msgid "MMM D, YYYY. H:m"
msgstr "D MMM YYYY à H:m"
#: ../src\controller\mainController.py:966
#: ../src\controller\mainController.py:949
msgid "Conversation with {0}"
msgstr "Conversation avec {0}"
#: ../src\controller\mainController.py:990
#: ../src\controller\mainController.py:1007
#: ../src\controller\mainController.py:1024
msgid "There are no coordinates in this tweet"
msgstr "Il n'y a aucune coordonnée dans ce tweet"
#: ../src\controller\mainController.py:1009
#: ../src\controller\mainController.py:1028
#: ../src\controller\mainController.py:992
#: ../src\controller\mainController.py:1011
msgid "Error decoding coordinates. Try again later."
msgstr "Erreur pendant le décodage des coordonnées. Réessayez plus tard."
#: ../src\controller\mainController.py:1013
#: ../src\controller\mainController.py:996
msgid "Unable to find address in OpenStreetMap."
msgstr "Impossible de trouver l'adresse dans OpenStreetMap"
#: ../src\controller\mainController.py:1026
#: ../src\controller\mainController.py:1009
msgid "There are no results for the coordinates in this tweet"
msgstr "Il n'y a aucun résultat pour les coordonnées dans ce tweet"
#: ../src\controller\mainController.py:1137
#: ../src\controller\mainController.py:1156
#: ../src\controller\mainController.py:1120
#: ../src\controller\mainController.py:1139
msgid "%s, %s of %s"
msgstr "%s, %s de %s"
#: ../src\controller\mainController.py:1139
#: ../src\controller\mainController.py:1158
#: ../src\controller\mainController.py:1183
#: ../src\controller\mainController.py:1208
#: ../src\controller\mainController.py:1122
#: ../src\controller\mainController.py:1141
#: ../src\controller\mainController.py:1166
#: ../src\controller\mainController.py:1191
msgid "%s. Empty"
msgstr "%s. Vide"
#: ../src\controller\mainController.py:1171
#: ../src\controller\mainController.py:1175
#: ../src\controller\mainController.py:1196
#: ../src\controller\mainController.py:1154
#: ../src\controller\mainController.py:1158
#: ../src\controller\mainController.py:1179
msgid "{0}: This account is not logged into Twitter."
msgstr "{0}: Ce compte n'est pas connecté à twitter."
#: ../src\controller\mainController.py:1181
#: ../src\controller\mainController.py:1206
#: ../src\controller\mainController.py:1164
#: ../src\controller\mainController.py:1189
msgid "%s. %s, %s of %s"
msgstr "%s. %s, %s de %s"
#: ../src\controller\mainController.py:1200
#: ../src\controller\mainController.py:1183
msgid "{0}: This account is not logged into twitter."
msgstr "{0}: Ce compte n'est pas connecté à twitter."
#: ../src\controller\mainController.py:1426
#: ../src\controller\mainController.py:1408
msgid "This list is already opened"
msgstr "Cette liste est déjà ouverte"
#: ../src\controller\mainController.py:1456
#: ../src\controller\mainController.py:1472
#: ../src\controller\mainController.py:1438
#: ../src\controller\mainController.py:1454
msgid ""
"An error happened while trying to connect to the server. Please try later."
msgstr ""
"Une erreur s'est produite en essayant de se connecter au serveur. Veuillez "
"réessayer plus tard."
#: ../src\controller\mainController.py:1508
#: ../src\controller\mainController.py:1490
msgid "The auto-reading of new tweets is enabled for this buffer"
msgstr "La lecture automatique des nouveaux tweets est activée pour ce tampon"
#: ../src\controller\mainController.py:1511
#: ../src\controller\mainController.py:1493
msgid "The auto-reading of new tweets is disabled for this buffer"
msgstr ""
"La lecture automatique des nouveaux tweets est désactivée pour ce tampon"
#: ../src\controller\mainController.py:1518
#: ../src\controller\mainController.py:1500
msgid "Session mute on"
msgstr "Session muet"
#: ../src\controller\mainController.py:1521
#: ../src\controller\mainController.py:1503
msgid "Session mute off"
msgstr "Session non muet"
#: ../src\controller\mainController.py:1529
#: ../src\controller\mainController.py:1511
msgid "Buffer mute on"
msgstr "Tampon muet"
#: ../src\controller\mainController.py:1532
#: ../src\controller\mainController.py:1514
msgid "Buffer mute off"
msgstr "Tampon non muet"
#: ../src\controller\mainController.py:1555
#: ../src\controller\mainController.py:1537
msgid "Copied"
msgstr "Copié"
#: ../src\controller\mainController.py:1586
#: ../src\controller\mainController.py:1567
msgid "Unable to update this buffer."
msgstr "Impossible de mettre à jour ce tampon."
#: ../src\controller\mainController.py:1589
#: ../src\controller\mainController.py:1570
msgid "Updating buffer..."
msgstr "Actualisation..."
#: ../src\controller\mainController.py:1592
#: ../src\controller\mainController.py:1573
msgid "{0} items retrieved"
msgstr "{0} éléments récupérés"
#: ../src\controller\mainController.py:1609
#: ../src\controller\mainController.py:1629
#: ../src\controller\mainController.py:1590
#: ../src\controller\mainController.py:1610
msgid "Invalid buffer"
msgstr "Tampon invalide"
#: ../src\controller\mainController.py:1620
#: ../src\controller\mainController.py:1601
msgid "Picture {0}"
msgstr "Photo {0}"
#: ../src\controller\mainController.py:1621
#: ../src\controller\mainController.py:1602
msgid "Select the picture"
msgstr "Sélectionner la photo"
#: ../src\controller\mainController.py:1640
#: ../src\controller\mainController.py:1621
msgid "Unable to extract text"
msgstr "Impossible d'extraire le texte"
@@ -657,7 +661,7 @@ msgstr "Arrêté"
msgid "&Record"
msgstr "&Enregistrer"
#: ../src\extra\AudioUploader\audioUploader.py:136 ../src\sound.py:146
#: ../src\extra\AudioUploader\audioUploader.py:136 ../src\sound.py:148
msgid "Playing..."
msgstr "Lecture..."
@@ -1786,7 +1790,7 @@ msgid "Execute action"
msgstr "Exécuter une action"
#: ../src\keystrokeEditor\wx_ui.py:22 ../src\wxUI\dialogs\configuration.py:396
#: ../src\wxUI\dialogs\utils.py:39 ../src\wxUI\dialogs\utils.py:71
#: ../src\wxUI\dialogs\userAliasDialogs.py:24 ../src\wxUI\dialogs\utils.py:39
msgid "Close"
msgstr "Fermer"
@@ -1823,8 +1827,8 @@ msgid "Key"
msgstr "Touche"
#: ../src\keystrokeEditor\wx_ui.py:71 ../src\wxUI\dialogs\filterDialogs.py:82
#: ../src\wxUI\dialogs\find.py:21 ../src\wxUI\dialogs\utils.py:36
#: ../src\wxUI\dialogs\utils.py:68
#: ../src\wxUI\dialogs\find.py:21 ../src\wxUI\dialogs\userAliasDialogs.py:22
#: ../src\wxUI\dialogs\utils.py:36
msgid "OK"
msgstr "OK"
@@ -1940,7 +1944,7 @@ msgstr ""
"ou après la réactivation d'un compte. Veuillez supprimer manuellement ce "
"compte depuis votre session Twitter pour ne plus voir ce message."
#: ../src\sessions\base.py:111
#: ../src\sessions\base.py:113
msgid ""
"An exception occurred while saving the {app} database. It will be deleted "
"and rebuilt automatically. If this error persists, send the error log to the "
@@ -1950,7 +1954,7 @@ msgstr ""
"{app}, elle va être détruite et recréée automatiquement. Si ce problème "
"perciste, veuillez envoyer le journal d'erreur aux développeurs de {app}."
#: ../src\sessions\base.py:151
#: ../src\sessions\base.py:153
msgid ""
"An exception occurred while loading the {app} database. It will be deleted "
"and rebuilt automatically. If this error persists, send the error log to the "
@@ -1999,16 +2003,16 @@ msgstr "privé"
msgid "public"
msgstr "public"
#: ../src\sessions\twitter\session.py:208
#: ../src\sessions\twitter\session.py:209
msgid "%s failed. Reason: %s"
msgstr "%s erreur. Raison: %s"
#: ../src\sessions\twitter\session.py:214
#: ../src\sessions\twitter\session.py:215
msgid "%s succeeded."
msgstr "%s réussi."
#: ../src\sessions\twitter\session.py:423
#: ../src\sessions\twitter\session.py:501
#: ../src\sessions\twitter\session.py:424
#: ../src\sessions\twitter\session.py:502
msgid "Deleted account"
msgstr "Compte supprimé"
@@ -2021,8 +2025,8 @@ msgid "No status found with that ID"
msgstr "Aucun Tweet trouvée avec cet ID"
#: ../src\sessions\twitter\utils.py:235
msgid "Error code {0}"
msgstr "Code d'erreur {0}"
msgid "Error {0}"
msgstr "Erreur {0}"
#: ../src\sessions\twitter\utils.py:262
msgid "{user_1}, {user_2} and {all_users} more: {text}"
@@ -2036,7 +2040,7 @@ msgstr "Compte en cours d'autorisation..."
msgid "Enter your PIN code here"
msgstr "Entrer votre code PIN ici"
#: ../src\sound.py:159
#: ../src\sound.py:161
msgid "Stopped."
msgstr "Arrêté."
@@ -2100,8 +2104,8 @@ msgstr "Date"
#: ../src\wxUI\buffers\base.py:12 ../src\wxUI\buffers\people.py:12
#: ../src\wxUI\buffers\user_searches.py:11
#: ../src\wxUI\dialogs\userAliasDialogs.py:13
#: ../src\wxUI\dialogs\userSelection.py:11 ../src\wxUI\dialogs\utils.py:32
#: ../src\wxUI\dialogs\utils.py:59
msgid "User"
msgstr "Utilisateur"
@@ -3069,8 +3073,8 @@ msgid "&User"
msgstr "&Utilisateur"
#: ../src\wxUI\dialogs\userActions.py:14
#: ../src\wxUI\dialogs\userAliasDialogs.py:12
#: ../src\wxUI\dialogs\userSelection.py:14 ../src\wxUI\dialogs\utils.py:31
#: ../src\wxUI\dialogs\utils.py:58
msgid "&Autocomplete users"
msgstr "&Saisie automatique utilisateurs"
@@ -3106,6 +3110,10 @@ msgstr "&Signaler comme spam"
msgid "&Ignore tweets from this client"
msgstr "&Ignorer les tweets de ce client"
#: ../src\wxUI\dialogs\userAliasDialogs.py:17
msgid "Alias"
msgstr "Alias"
#: ../src\wxUI\dialogs\userSelection.py:10
msgid "Timeline for %s"
msgstr "Chronologie pour %s"
@@ -3130,10 +3138,6 @@ msgstr "&Abonnés"
msgid "F&riends"
msgstr "A&bonnements"
#: ../src\wxUI\dialogs\utils.py:63
msgid "Alias"
msgstr "Alias"
#: ../src\wxUI\menus.py:8 ../src\wxUI\view.py:32
msgid "&Retweet"
msgstr "&Retweet"
@@ -3404,6 +3408,9 @@ msgstr "Mise à jour"
msgid "Your {0} version is up to date"
msgstr "Votre version de {0} est à jour"
#~ msgid "Friends' Timelines"
#~ msgstr "Chronologies des abonnements"
#~ msgid "Events"
#~ msgstr "Événements"

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -8,6 +8,7 @@ import wx
import config
import output
import application
import appkeys
from pubsub import pub
import tweepy
from tweepy.errors import TweepyException, Forbidden, NotFound
@@ -135,9 +136,10 @@ class Session(base.baseSession):
if self.settings["twitter"]["user_key"] != None and self.settings["twitter"]["user_secret"] != None:
try:
log.debug("Logging in to twitter...")
self.auth = tweepy.OAuthHandler(keyring.get("api_key"), keyring.get("api_secret"))
self.auth = tweepy.OAuthHandler(appkeys.twitter_api_key, appkeys.twitter_api_secret)
self.auth.set_access_token(self.settings["twitter"]["user_key"], self.settings["twitter"]["user_secret"])
self.twitter = tweepy.API(self.auth)
self.twitter_v2 = tweepy.Client(consumer_key=appkeys.twitter_api_key, consumer_secret=appkeys.twitter_api_secret, access_token=self.settings["twitter"]["user_key"], access_token_secret=self.settings["twitter"]["user_secret"])
if verify_credentials == True:
self.credentials = self.twitter.verify_credentials()
self.logged = True
@@ -156,7 +158,7 @@ class Session(base.baseSession):
if self.logged == True:
raise Exceptions.AlreadyAuthorisedError("The authorisation process is not needed at this time.")
else:
self.auth = tweepy.OAuthHandler(keyring.get("api_key"), keyring.get("api_secret"))
self.auth = tweepy.OAuthHandler(appkeys.twitter_api_key, appkeys.twitter_api_secret)
redirect_url = self.auth.get_authorization_url()
webbrowser.open_new_tab(redirect_url)
self.authorisation_dialog = authorisationDialog()
@@ -523,7 +525,7 @@ class Session(base.baseSession):
def start_streaming(self):
if config.app["app-settings"]["no_streaming"]:
return
self.stream = streaming.Stream(twitter_api=self.twitter, user=self.db["user_name"], user_id=self.db["user_id"], muted_users=self.db["muted_users"], consumer_key=keyring.get("api_key"), consumer_secret=keyring.get("api_secret"), access_token=self.settings["twitter"]["user_key"], access_token_secret=self.settings["twitter"]["user_secret"], chunk_size=1025)
self.stream = streaming.Stream(twitter_api=self.twitter, user=self.db["user_name"], user_id=self.db["user_id"], muted_users=self.db["muted_users"], consumer_key=appkeys.twitter_api_key, consumer_secret=appkeys.twitter_api_secret, access_token=self.settings["twitter"]["user_key"], access_token_secret=self.settings["twitter"]["user_secret"], chunk_size=1025)
self.stream_thread = call_threaded(self.stream.filter, follow=self.stream.users, stall_warnings=True)
def stop_streaming(self):

View File

@@ -1,4 +1,3 @@
from __future__ import unicode_literals
from logging import getLogger
logger = getLogger('update')
@@ -24,8 +23,8 @@ def perform_update(endpoint, current_version, app_name='', password=None, update
if not available_update:
logger.debug("No update available")
return False
available_version = float(available_update['current_version'])
if not float(available_version) > float(current_version) or platform.system()+platform.architecture()[0][:2] not in available_update['downloads']:
available_version = available_update['current_version']
if available_version == current_version or platform.system()+platform.architecture()[0][:2] not in available_update['downloads']:
logger.debug("No update for this architecture")
return False
available_description = available_update.get('description', None)
@@ -42,10 +41,10 @@ def perform_update(endpoint, current_version, app_name='', password=None, update
downloaded = download_update(update_url, download_path, requests_session=requests_session, progress_callback=progress_callback)
extracted = extract_update(downloaded, update_path, password=password)
bootstrap_path = move_bootstrap(extracted)
execute_bootstrap(bootstrap_path, extracted)
logger.info("Update prepared for installation.")
if callable(update_complete_callback):
update_complete_callback()
execute_bootstrap(bootstrap_path, extracted)
logger.info("Update prepared for installation.")
def create_requests_session(app_name=None, version=None):
user_agent = ''

View File

@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import unicode_literals
import application
from . import update
import platform

35
src/write_version_data.py Normal file
View File

@@ -0,0 +1,35 @@
#! /usr/bin/env python# -*- coding: iso-8859-1 -*-
""" Write version info (taken from the last commit) to application.py. This method has been implemented this way for running updates.
This file is not intended to be called by the user. It will be used only by the Gitlab CI runner."""
import requests
from codecs import open
print("Writing version data for update...")
commit_info = requests.get("https://gitlab.com/api/v4/projects/23482196/repository/commits/next-gen")
commit_info = commit_info.json()
commit = commit_info["short_id"]
print("Got new version info: {commit}".format(commit=commit,))
file = open("application.py", "r", encoding="utf-8")
lines = file.readlines()
lines[-1] = 'version = "{}"'.format(commit_info["created_at"][:10].replace("-", "."))
file.close()
file2 = open("application.py", "w", encoding="utf-8")
file2.writelines(lines)
file2.close()
print("Wrote application.py with the new version info.")
print("Updating next version on installer setup...")
file = open("..\\scripts\\twblue.nsi", "r", encoding="utf-8")
contents = file.read()
contents = contents.replace("0.95", commit_info["created_at"][:10].replace("-", "."))
file.close()
file2 = open("..\\scripts\\twblue.nsi", "w", encoding="utf-8")
file2.write(contents)
file2.close()
print("done")
file3 = open("appkeys.py", "w")
keys = """twitter_api_key = "daMHlXsFlalEWtaqTL7xd6TqZ"
twitter_api_secret = "lOcpsIlhr1lBpA53oNWwmKh9yM6Gqk3IRFOzq9TvAO8B5gisFD"
"""
file3.write(keys)
file3.close()

View File

@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
import wx
import gettext
from . import baseDialog
class addAliasDialog(baseDialog.BaseWXDialog):
@@ -34,3 +35,61 @@ class addAliasDialog(baseDialog.BaseWXDialog):
def get_user(self):
return (self.cb.GetValue(), self.alias.GetValue())
class userAliasEditorDialog(wx.Dialog):
def __init__(self, *args, **kwds):
super(userAliasEditorDialog, self).__init__(parent=None)
self.SetTitle(_("Edit user aliases"))
main_sizer = wx.BoxSizer(wx.VERTICAL)
userListSizer = wx.StaticBoxSizer(wx.StaticBox(self, wx.ID_ANY, _("Users")), wx.VERTICAL)
main_sizer.Add(userListSizer, 1, wx.EXPAND, 0)
self.users = wx.ListBox(self, wx.ID_ANY, choices=[])
self.users.Bind(wx.EVT_LISTBOX, self.on_selection_changes)
userListSizer.Add(self.users, 0, 0, 0)
actionsSizer = wx.StaticBoxSizer(wx.StaticBox(self, wx.ID_ANY, _("Actions")), wx.HORIZONTAL)
main_sizer.Add(actionsSizer, 1, wx.EXPAND, 0)
self.add = wx.Button(self, wx.ID_ANY, _("Add alias"))
self.add.SetToolTip(_("Adds a new user alias"))
actionsSizer.Add(self.add, 0, 0, 0)
self.edit = wx.Button(self, wx.ID_ANY, _("Edit"))
self.edit.SetToolTip(_("Edit the currently focused user Alias."))
self.edit.Enable(False)
actionsSizer.Add(self.edit, 0, 0, 0)
self.remove = wx.Button(self, wx.ID_ANY, _("Remove"))
self.remove.SetToolTip(_("Remove the currently focused user alias."))
self.remove.Enable(False)
actionsSizer.Add(self.remove, 0, 0, 0)
btnSizer = wx.StdDialogButtonSizer()
main_sizer.Add(btnSizer, 0, wx.ALIGN_RIGHT | wx.ALL, 4)
self.button_CLOSE = wx.Button(self, wx.ID_CLOSE, "")
btnSizer.AddButton(self.button_CLOSE)
btnSizer.Realize()
self.SetSizer(main_sizer)
main_sizer.Fit(self)
self.SetEscapeId(self.button_CLOSE.GetId())
self.Layout()
def on_selection_changes(self, *args, **kwargs):
selection = self.users.GetSelection()
if selection == -1:
self.enable_action_buttons(False)
else:
self.enable_action_buttons(True)
def get_selected_user(self):
return self.users.GetStringSelection()
def remove_alias_dialog(self, *args, **kwargs):
dlg = wx.MessageDialog(self, _("Are you sure you want to delete this user alias?"), _("Remove user alias"), wx.YES_NO)
if dlg.ShowModal() == wx.ID_YES:
return True
else:
return False
def enable_action_buttons(self, enabled=True):
self.edit.Enable(enabled)
self.remove.Enable(enabled)
def edit_alias_dialog(self, title):
dlg = wx.TextEntryDialog(self, title, _("User alias"))
if dlg.ShowModal() == wx.ID_OK:
return dlg.GetValue()

View File

@@ -20,6 +20,7 @@ class mainFrame(wx.Frame):
self.show_hide = app.Append(wx.ID_ANY, _(u"&Hide window"))
self.menuitem_search = app.Append(wx.ID_ANY, _(u"&Search"))
self.lists = app.Append(wx.ID_ANY, _(u"&Lists manager"))
self.manageAliases = app.Append(wx.ID_ANY, _("Manage user aliases"))
self.keystroke_editor = app.Append(wx.ID_ANY, _(u"&Edit keystrokes"))
self.account_settings = app.Append(wx.ID_ANY, _(u"Account se&ttings"))
self.prefs = app.Append(wx.ID_PREFERENCES, _(u"&Global settings"))

View File

@@ -1,6 +0,0 @@
{"current_version": "0.95",
"description": "The first version for the new generation of TWBlue.",
"date": "day_name_abr month day_numb, 2016",
"downloads":
{"Windows32": "http://twblue.es/pubs/twblue_ngen_0.80_x86.zip",
"Windows64": "http://twblue.es/pubs/twblue_ngen_0.80_x64.zip"}}