diff --git a/README.md b/README.md index ff0eeca..57f829c 100644 --- a/README.md +++ b/README.md @@ -1 +1,27 @@ -# toxygen +# Toxygen +Toxygen is simple Tox client written on pure Python 2.7 +### [How to install](/docs/install.md) + +# Supported OS: +- Windows +- Linux +###Features + +- [x] 1v1 messages +- [x] Contact aliases +- [x] Chat history +- [x] Name lookups (TOX DNS 4 support) +- [x] Profile import/export +- [x] Message splitting +- [x] Proxy support +- [ ] File transfers +- [ ] Avatars +- [ ] Multiprofile +- [ ] Multilingual + +###Downloads +[Download last stable version](https://github.com/xveduk/toxygen/archive/master.zip) + +###Docs +[Check /docs/ for more info](/docs/) + diff --git a/docs/doxygen_docs_v_0_1_1.zip b/docs/doxygen_docs_v_0_1_1.zip new file mode 100644 index 0000000..0f5127a Binary files /dev/null and b/docs/doxygen_docs_v_0_1_1.zip differ diff --git a/docs/install.md b/docs/install.md new file mode 100644 index 0000000..e8e0187 --- /dev/null +++ b/docs/install.md @@ -0,0 +1,10 @@ +# HOW TO INSTALL TOXYGEN: + +1. [Install Python 2.7 in your system](https://wiki.python.org/moin/BeginnersGuide/Download) +2. [Install PySide](https://pypi.python.org/pypi/PySide/1.2.4) *(PyQt4 support will be added later)* +3. [Download toxygen](https://github.com/xveduk/toxygen/archive/master.zip) +4. Unpack archive and run src/main.py + +# Supported OS: +- Windows +- Linux \ No newline at end of file diff --git a/src/menu.py b/src/menu.py index f374ac1..aa54276 100644 --- a/src/menu.py +++ b/src/menu.py @@ -242,7 +242,7 @@ class NetworkSettings(CenteredWidget): old_data = str(settings['ipv6_enabled']) + str(settings['udp_enabled']) + str(bool(settings['proxy_type'])) new_data = str(self.ipv.isChecked()) + str(self.udp.isChecked()) + str(self.proxy.isChecked()) changed = old_data != new_data - if self.proxy.isChecked() and (self.proxyip.text() != settings['proxy_host'] or self.proxyport.text() != settings['proxy_port']): + if self.proxy.isChecked() and (self.proxyip.text() != settings['proxy_host'] or self.proxyport.text() != unicode(settings['proxy_port'])): changed = True if changed: settings['ipv6_enabled'] = self.ipv.isChecked() diff --git a/src/profile.py b/src/profile.py index 80146b5..5305968 100644 --- a/src/profile.py +++ b/src/profile.py @@ -456,7 +456,7 @@ class Profile(Contact, Singleton): """ while len(message) > TOX_MAX_MESSAGE_LENGTH: size = TOX_MAX_MESSAGE_LENGTH * 4 / 5 - last_part = message[size:] + last_part = message[size:TOX_MAX_MESSAGE_LENGTH] if ' ' in last_part: index = last_part.index(' ') elif ',' in last_part: @@ -465,7 +465,7 @@ class Profile(Contact, Singleton): index = last_part.index('.') else: index = TOX_MAX_MESSAGE_LENGTH - size - index += size + index += size + 1 self._tox.friend_send_message(number, message_type, message[:index]) message = message[index:] self._tox.friend_send_message(number, message_type, message)