[hamradio-commits] [pydxcluster] 01/08: Imported Upstream version 2.21

Ana Custura ana.c-guest at moszumanska.debian.org
Thu Jun 2 19:26:32 UTC 2016


This is an automated email from the git hooks/post-receive script.

ana.c-guest pushed a commit to branch master
in repository pydxcluster.

commit 1c57205f8c3aae113aeb3ee95a7c8f5dd7e4bc46
Author: Ana C. Custura <ana at netstat.org.uk>
Date:   Sun May 1 14:53:17 2016 +0100

    Imported Upstream version 2.21
---
 LICENSE.txt          |  674 +++++++++++++
 LICENSZ_HUN.txt      |   75 ++
 bell.wav             |  Bin 0 -> 387304 bytes
 default.col          |    1 +
 pyDxCluster_v2_21.py | 2593 ++++++++++++++++++++++++++++++++++++++++++++++++++
 pydxcluster.cfg      |    1 +
 6 files changed, 3344 insertions(+)

diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000..94a9ed0
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,674 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  You must make sure that they, too, receive
+or can get the source code.  And you must show them these terms so they
+know their rights.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+  Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so.  This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software.  The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable.  Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products.  If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+  Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary.  To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                       TERMS AND CONDITIONS
+
+  0. Definitions.
+
+  "This License" refers to version 3 of the GNU General Public License.
+
+  "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+  "The Program" refers to any copyrightable work licensed under this
+License.  Each licensee is addressed as "you".  "Licensees" and
+"recipients" may be individuals or organizations.
+
+  To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy.  The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+  A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+  To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy.  Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+  To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies.  Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+  An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License.  If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+  1. Source Code.
+
+  The "source code" for a work means the preferred form of the work
+for making modifications to it.  "Object code" means any non-source
+form of a work.
+
+  A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+  The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form.  A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+  The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities.  However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work.  For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+  The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+  The Corresponding Source for a work in source code form is that
+same work.
+
+  2. Basic Permissions.
+
+  All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met.  This License explicitly affirms your unlimited
+permission to run the unmodified Program.  The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work.  This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+  You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force.  You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright.  Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+  Conveying under any other circumstances is permitted solely under
+the conditions stated below.  Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+  No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+  When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+  4. Conveying Verbatim Copies.
+
+  You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+  You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+  5. Conveying Modified Source Versions.
+
+  You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+    a) The work must carry prominent notices stating that you modified
+    it, and giving a relevant date.
+
+    b) The work must carry prominent notices stating that it is
+    released under this License and any conditions added under section
+    7.  This requirement modifies the requirement in section 4 to
+    "keep intact all notices".
+
+    c) You must license the entire work, as a whole, under this
+    License to anyone who comes into possession of a copy.  This
+    License will therefore apply, along with any applicable section 7
+    additional terms, to the whole of the work, and all its parts,
+    regardless of how they are packaged.  This License gives no
+    permission to license the work in any other way, but it does not
+    invalidate such permission if you have separately received it.
+
+    d) If the work has interactive user interfaces, each must display
+    Appropriate Legal Notices; however, if the Program has interactive
+    interfaces that do not display Appropriate Legal Notices, your
+    work need not make them do so.
+
+  A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit.  Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+  6. Conveying Non-Source Forms.
+
+  You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+    a) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by the
+    Corresponding Source fixed on a durable physical medium
+    customarily used for software interchange.
+
+    b) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by a
+    written offer, valid for at least three years and valid for as
+    long as you offer spare parts or customer support for that product
+    model, to give anyone who possesses the object code either (1) a
+    copy of the Corresponding Source for all the software in the
+    product that is covered by this License, on a durable physical
+    medium customarily used for software interchange, for a price no
+    more than your reasonable cost of physically performing this
+    conveying of source, or (2) access to copy the
+    Corresponding Source from a network server at no charge.
+
+    c) Convey individual copies of the object code with a copy of the
+    written offer to provide the Corresponding Source.  This
+    alternative is allowed only occasionally and noncommercially, and
+    only if you received the object code with such an offer, in accord
+    with subsection 6b.
+
+    d) Convey the object code by offering access from a designated
+    place (gratis or for a charge), and offer equivalent access to the
+    Corresponding Source in the same way through the same place at no
+    further charge.  You need not require recipients to copy the
+    Corresponding Source along with the object code.  If the place to
+    copy the object code is a network server, the Corresponding Source
+    may be on a different server (operated by you or a third party)
+    that supports equivalent copying facilities, provided you maintain
+    clear directions next to the object code saying where to find the
+    Corresponding Source.  Regardless of what server hosts the
+    Corresponding Source, you remain obligated to ensure that it is
+    available for as long as needed to satisfy these requirements.
+
+    e) Convey the object code using peer-to-peer transmission, provided
+    you inform other peers where the object code and Corresponding
+    Source of the work are being offered to the general public at no
+    charge under subsection 6d.
+
+  A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+  A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling.  In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage.  For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product.  A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+  "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source.  The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+  If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information.  But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+  The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed.  Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+  Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+  7. Additional Terms.
+
+  "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law.  If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+  When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it.  (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.)  You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+  Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+    a) Disclaiming warranty or limiting liability differently from the
+    terms of sections 15 and 16 of this License; or
+
+    b) Requiring preservation of specified reasonable legal notices or
+    author attributions in that material or in the Appropriate Legal
+    Notices displayed by works containing it; or
+
+    c) Prohibiting misrepresentation of the origin of that material, or
+    requiring that modified versions of such material be marked in
+    reasonable ways as different from the original version; or
+
+    d) Limiting the use for publicity purposes of names of licensors or
+    authors of the material; or
+
+    e) Declining to grant rights under trademark law for use of some
+    trade names, trademarks, or service marks; or
+
+    f) Requiring indemnification of licensors and authors of that
+    material by anyone who conveys the material (or modified versions of
+    it) with contractual assumptions of liability to the recipient, for
+    any liability that these contractual assumptions directly impose on
+    those licensors and authors.
+
+  All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10.  If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term.  If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+  If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+  Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+  8. Termination.
+
+  You may not propagate or modify a covered work except as expressly
+provided under this License.  Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+  However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+  Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+  Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License.  If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+  9. Acceptance Not Required for Having Copies.
+
+  You are not required to accept this License in order to receive or
+run a copy of the Program.  Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance.  However,
+nothing other than this License grants you permission to propagate or
+modify any covered work.  These actions infringe copyright if you do
+not accept this License.  Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+  10. Automatic Licensing of Downstream Recipients.
+
+  Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License.  You are not responsible
+for enforcing compliance by third parties with this License.
+
+  An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations.  If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+  You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License.  For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+  11. Patents.
+
+  A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based.  The
+work thus licensed is called the contributor's "contributor version".
+
+  A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version.  For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+  Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+  In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement).  To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+  If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients.  "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+  If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+  A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License.  You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+  Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+  12. No Surrender of Others' Freedom.
+
+  If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all.  For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+  13. Use with the GNU Affero General Public License.
+
+  Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work.  The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+  14. Revised Versions of this License.
+
+  The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+  Each version is given a distinguishing version number.  If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation.  If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+  If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+  Later license versions may give you additional or different
+permissions.  However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+  15. Disclaimer of Warranty.
+
+  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. Limitation of Liability.
+
+  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+  17. Interpretation of Sections 15 and 16.
+
+  If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+  If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+    <program>  Copyright (C) <year>  <name of author>
+    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+  You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+  The GNU General Public License does not permit incorporating your program
+into proprietary programs.  If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.  But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
diff --git a/LICENSZ_HUN.txt b/LICENSZ_HUN.txt
new file mode 100644
index 0000000..dae4db3
--- /dev/null
+++ b/LICENSZ_HUN.txt
@@ -0,0 +1,75 @@
+GNU General Public License (GPL)
+
+Copyright (C) 1989, 1991 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
+Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA
+
+Előszó
+
+A legtöbb szoftver licenceit azzal a szándékkal készítették, hogy Öntől a szoftver átdolgozásának és terjesztésének szabadságát elvonják. Ezzel szemben a GNU General Public License célja az, hogy garantálja az Ön számára a szabad szoftver átdolgozásának és terjesztésének szabadságát, ezáltal biztosítva a szoftver szabad használatát minden felhasználó számára. Ennek a General Public Licensenek a szabályai vonatkoznak a Free Software Foundation szoftvereinek nagy részére, illetve minden ol [...]
+
+A szabad szoftver megjelölés a szabadságra vonatkozik, és nem az árra. A General Public License-szek célja, hogy biztosítsa az Ön számára a szabad szoftver többszörözésének és terjesztésének jogát (és e szolgáltatásért akár díj felszámítását), a forráskód átadását (vagy igény szerint hozzáférést ehhez a kódhoz), a szoftver átdolgozásának lehetőségét, illetve hogy a szoftver egyes részeit új szabad programokban használhassa fel. és hogy e lehetőségekkel tudatosan élhessen.
+Az Ön jogai védelmében hozott korlátozások azok, amelyek megakadályozzák, hogy valaki e jogok gyakorlását Önnek megtilthassa, vagy Önt ezekről lemondásra/tartózkodásra kényszeríthesse. Az ezekből a korlátozásokból eredő felelősség Önt is terheli, amennyiben a szoftver műpéldányokat terjeszti, illetve átdolgozza.
+
+Amennyiben Ön például ilyen [licenccel ellátott] program másolatait terjeszti, akár ingyenesen, akár bizonyos díj fejében, a szoftverrel kapcsolatos valamennyi jogot köteles átruházni a [harmadik személy] felhasználónak. Meg kell továbbá győződnie arról, hogy a [harmadik személy] felhasználó számára a forráskód, vagy a kódhoz jutás lehetősége biztosított. És annak érdekében, hogy a [harmadik személy] felhasználó megismerje jogait, ismertetnie kell vele a felhasználás kereteit meghatározó [...]
+
+Az Ön jogait két lépésben védjük:
+(1) a szoftvereket szerzői oltalom alá helyezzük és
+(2) felkínáljuk Önnek jelen licencet, amely jogosítja Önt a szoftver többszörözésére, terjesztésére és/vagy átdolgozására
+
+A szerző és a magunk [FSF] védelmében biztosítani kívánjuk továbbá, hogy mindenki úgy értelmezi, hogy erre szabad szoftverre nincs szavatosság. Ha a szoftvert átdolgozták és továbbadták, akkor mindenkinek, aki az átdolgozott változatot kapja, tudnia kell, hogy az nem az eredeti, így a mások által okozott hibák nem sérthetik az eredeti szerző hírnevét.
+
+Végül és utolsó sorban, valamennyi a szabad szoftver létét folyamatosan fenyegetik a szoftverszabadalmak. El kívánjuk kerülni annak veszélyét, hogy a szabad programra terjesztői egyedileg szabadalmi oltalmat igényelhessenek, és ezáltal a programot kisajátítsák. Ennek megakadályozásához tisztázni kívánjuk: szabadalom szabad szoftverrel kapcsolatban csak mindenkire vonatkozó hasznosítási joggal jegyezhető be, vagy egyáltalán nem jegyezhető be.
+
+A többszörözésre, terjesztésre, átdolgozásra vonatkozó konkrét szabályok és feltételek:
+
+A TÖBBSZÖRÖZÉSRE, TERJESZTÉSRE ÉS ÁTDOLGOZÁSRA VONATKOZÓ FELTÉTELEK ÉS KIKÖTÉSEK
+
+0. Ez a licenc minden olyan programra vagy más műre vonatkozik, amelyen a vagyoni jog jogosultja utal arra, hogy a mű a General Public License-ben foglaltak alapján terjeszthető. Az továbbiakban a “Program” kifejezés bármely ilyen programra vagy műre vonatkozik, a “Programon alapuló mű” pedig magát a programot , illetve bármely, annak a szerzői jog által védett átdolgozását jelenti: vagyis olyan művet, amely tartalmazza a Programot vagy annak egy részletét, átdolgozott vagy átdolgozástól [...]
+
+A jelen licenc a többszörözésen, terjesztésen és átdolgozáson kívül más felhasználási módra nem vonatkozik, azok az engedélyezési körön kívül esnek. A Program futtatása nincs korlátozva, illetve a Program eredményeire is csak abban az esetben vonatkozik ez a szabályozás, ha az tartalmazza a Programon alapuló mű egy részletét (függetlenül attól, hogy ez a Program futtatásával jött-e létre). Ez tehát a Program működésétől függ.
+
+1. Ön a Program forráskódját átdolgozás nélkül többszörözheti és tetszőleges adathordozón terjesztheti, feltéve, hogy minden egyes példányon szembetűnően pontosan feltünteti a megfelelő szerzői jogi megjegyzést, illetve a garanciavállalás kizárását; érintetlenül kell hagynia minden erre a licencre és a garancia teljes hiányára utaló szöveget, továbbá a jelen licencfeltételeket is el kell juttatnia mindazokhoz, akik a Programot kapják.
+A másolati példányok fizikai továbbítása fejében díjat kérhet, a Programhoz nyújthat anyagi ellentételezése fejében garanciális támogatást.
+
+2. Ön jogosult a Program másolatának vagy másolatainak vagy egy részének átdolgozására, amely következtében egy, a Programon alapuló mű jön létre. Az így keletkezett, átdolgozott művet ezt követően az 1. szakaszban adott feltételek szerint többszörözheti és terjesztheti, amennyiben az alábbi feltételek is teljesülnek :
+a) Az átdolgozott fájlokat el kell látnia olyan feltűnő megjegyzéssel, amely tartalmazza, hogy Ön végezte az átdolgozást és rögzíti az átdolgozás dátumát.
+b) Gondoskodnia kell arról, hogy minden, az Ön által terjesztett vagy nyilvánosságra hozott mű , amely részben vagy egészben tartalmazza a Programot, illetve a Program átdolgozásával jött létre, valamennyi harmadik személy számára, egységként jelen licencben meghatározott feltételek szerint díjmentesen kerüljön engedélyezésre.
+c) Ha az átdolgozott Program alapesetben futtatáskor interaktív parancsokat olvas be, gondoskodnia kell arról is, hogy amennyiben ilyen interaktív felhasználás a megszokott módon kerül indításra, jelenítsen meg vagy nyomtasson ki egy, a szerzői jogi kitételeket tartalmazó megjegyzést, valamint egy utalást a szavatosság igények kizárására (vagy éppen arra, hogy Ön milyen feltételekkel biztosítja a garanciát), illetve arra, hogy e feltételek betartása mellett a felhasználó terjesztheti a P [...]
+Ezek a feltételek az átdolgozott műre, mint egészre vonatkoznak. Ha a mű azonosítható részei nem a Programon alapulnak/nem vezethetőek le a Programból és önálló műként elkülönülten azonosíthatók, akkor ez a felhasználási engedély nem vonatkozik ezekre a részekre, amennyiben ezeket Ön önálló műként terjeszti.
+De ha ugyanezeket a részeket egy olyan mű részeként terjeszti, amely a Programon alapul, az egész terjesztésének ezen a szerződésen kell alapulnia, amely szerződésnek az engedélyei a többi felhasználóra is mint teljes egészre kiterjednek, és így minden részre is, függetlenül attól, hogy ki írta azokat.
+E bekezdésnek tehát nem az a célja, hogy a művekkel kapcsolatos szerzői jogokat érvényesítse, vagy hogy a jogait az Ön által alkotott művel kapcsolatban vitassa. Sokkal inkább az a cél, hogy a Programon alapuló származékos, vagy gyűjteményes művek terjesztésének ellenőrzésére vonatkozó jogokat gyakorolja.
+E felhasználási engedély nem vonatkozik más művekre, amelyek nem a Programon alapulnak, de a Programmal (vagy a Programon alapuló művel) azonos adathordozón kerülnek tárolásra, terjesztésre.
+
+3. Ön jogosult a Program (vagy a 2. szakasz értelmében a Programon alapuló mű) többszörözésére és terjesztésére tárgykódú vagy futtatható kódú formában az 1. és 2. szakaszban foglaltak szerint, feltéve, hogy az alábbi feltételeket is teljesíti:
+a) A programhoz mellékelje a teljes, gép által értelmezhető forráskódot egy jellemzően e célt szolgáló adathordozón , amely az 1. és 2. szakaszban foglaltak szerint kerül terjesztésre, vagy
+b) A programhoz mellékeljen egy legalább 3 évre vonatkozó írásbeli kötelezettségvállalást, amely alapján bármely harmadik személy rendelkezésére bocsátja a teljes gép által értelmezhető forráskódot a hordozó eljuttatásának költségét meg nem haladó díj fejében, amely az 1. és 2. szakaszban foglaltak szerint kerül terjesztésre, jellemzően e célt szolgáló adathordozón; vagy
+c) A Programhoz mellékelje azt a forráskód rendelkezésre bocsátására vonatkozó írásbeli kötelezettségvállalást, amelyet Ön is megkapott. (Ez az alternatíva csak nem kereskedelmi terjesztés esetén alkalmazható, és akkor is csak abban az esetben, ha Ön a Programot tárgyi vagy futtatható kódban a b. cikkelynek megfelelő írásbeli kötelezettségvállalással kapta.)
+Egy mű forráskódja a műnek azt a formáját jelenti, amely az átdolgozásra elsődlegesen alkalmas. Egy futtatható program a teljes forráskódot jelenti: valamennyi a program által tartalmazott modul forráskódját, továbbá a csatlakozófelület (interface) leírásait tartalmazó fájlokat éppúgy, mint a fordító- és telepítőszkripteket. Mindazonáltal, speciális kivételként, a terjesztett forráskódnak semmi olyasmit nem kell tartalmaznia, amit általában a binárist futtató operációs rendszer fő kompon [...]
+Ha a futtatható program vagy tárgykód terjesztése akként történik, hogy egy erre kijelölt helyen másolási jogot biztosítanak, az a forráskód terjesztésének minősül. Akkor is terjesztésről beszélünk, ha a kódhoz (forráskódként, illetve futtatható formában) ezzel egyenértékű hozzáférést biztosítanak abban az esetben is, ha harmadik személyek nem kötelesek a forráskódot a tárgykóddal együtt lemásolni.
+
+4. Ön a nem jogosult a Programot többszörözni, átdolgozni/megváltoztatni, tovább [harmadik személy részére] licencelni (allicencebe adni) vagy terjeszteni, amennyiben Önt e licenc erre kifejezetten nem jogosítja. A többszörözés, átdolgozás, allicencbe adás, terjesztés valamennyi más módja semmis és automatikusan a licenc által megszerzett jogok elvesztését vonja maga után. Mindazonáltal azon harmadik személyek jogviszonya/felhasználási engedélye, akik Ön által e licenc hatálya alatt máso [...]
+
+5. Ön nem köteles ezen licencet elfogadni, hiszen nem írta alá. Azonban semmilyen más módon nem nyílik joga, hogy a Programot vagy a Programon alapuló művet átdolgozza vagy terjessze. E cselekményeket – amennyiben e licencet nem ismeri el - a törvény tiltja. Azáltal, hogy a Programot (vagy a Programon alapuló művet) átdolgozza vagy terjeszti, jelen licenccel és annak minden a Program többszörözésére, terjesztésére és átdolgozására vonatkozó feltételével való egyetértését nyilvánítja ki.
+
+6. Minden alkalommal, amikor Ön a Programot (vagy az azon alapuló művet) továbbadja, a fogadó fél automatikusan az eredeti vagyoni jogi jogosulttól (licencbeadó) kap felhasználási engedélyt (licenc) arra, hogy a Programot az itt meghatározott feltételeknek megfelelően többszörözhesse, terjeszthesse, és átdolgozhassa. Ön nem jogosult semmilyen módon a fogadó felet (felhasználót) megillető jogokat a továbbiakban korlátozni. Ön nem felel azért, hogy harmadik személyek jelen licencet betartsák.
+
+7. Amennyiben Önnek egy bírósági ítélet, szabadalomsértés vélelme, vagy más (nem szabadalmi kérdésekre korlátozódó) okból olyan feltételeknek kell megfelelnie (akár bírósági határozat, akár egyezség vagy bármi más eredményeképp) amelyek jelen Licenc feltételeivel ellentétesek, Ön nem mentesül jelen licenc rendelkezései alól. Amennyiben nem lehetséges, hogy a Programot egyidejűleg a licenc feltételeinek és a másrészről keletkezett kötelezettségeinek figyelembe vétele mellett terjessze, ak [...]
+Ha ezen paragrafusok egy része érvénytelennek vagy bizonyos körülmények között érvényesíthetetlennek minősülne, ezen Paragrafust értelemszerűen kell alkalmazni; a többi esetben a Paragrafust, mint egészet kell érvényesíteni.
+Ezen Paragrafusok célja nem az hogy Önt valamely szabadalom vagy más tulajdonjogi igény megsértésére ösztönözze, illetve hogy ezen igények hatályosságát/jogosságát vitassa; e Paragrafus egyetlen célja, hogy a szabad szoftverek terjesztési rendszerének integritását – amely a nyilvános licencek gyakorlata által valósul meg – megóvja. Jelen rendszer keretében terjesztett szoftverek jelentős kínálatához sok ember nagylelkű felajánlással, a rendszer következetes működésében bízva járult hozzá [...]
+E szakasz célja az, hogy pontosan tisztázza, mit kell következtetésként/következményként a licenc hátralévő részéből figyelembe venni.
+
+8. Ha a Program terjesztése és/vagy használata egyes országokban akár szabadalmak, akár szerzői jogi oltalom alatt álló csatlakozó felületek (interface) miatt korlátozott, akkor a Program szerzői jogi jogosultja, aki a Programot e licenccel tette közzé/e licenc alá helyezte, a terjesztést kifejezett területi korlátozással láthatja el. Amelyben bizonyos országok kizárásra kerülnek, a terjesztés csak olyan országokra vonatkozóan lesz engedélyezett, amelyek nincsenek kizárva. Ilyen esetben  [...]
+
+9. A Free Software Foundation időről időre kiadja/nyilvánosságra hozza a General Public License dokumentum átdolgozott és/vagy új változatait. Ezek az újabb változatok alapvetően a korábbiak szellemében készülnek, de részletekben eltérhetnek, annak érdekében, hogy új problémákat vagy kihívásokat is kezeljenek.
+Jelen licenc minden változatának egy egyedi megkülönböztető verziószáma van. Ha a Program szerzői jogi megjegyzésében egy bizonyos verziószám vagy vagy “valamennyi újabb verzió” van megjelölve, akkor Önnek lehetősége van arra, hogy akár a megjelölt, akár a Free Software Foundation által kiadott későbbi verzióban leírt feltételeket kövesse. Ha nincs ilyen megjelölt verzió, akkor Ön jogosult a Free Software Foundation által valaha kibocsátott bármelyik licencet választani.
+
+10. Amennyiben a Programot más szabad szoftverben kívánja felhasználni, amelynek a terjesztéssel kapcsolatos feltételei eltérőek, írjon a Szerzőnek, és kérje ehhez a hozzájárulását. Olyan szoftverek esetében, ahol szerzői jogi jogosultként a Free Software Foundation van megjelölve, írjon a Free Software Foundation-nek. Néha teszünk kivételt. A döntés a következő célok szem előtt tartásával hozzuk meg: maradjon meg a szabad szoftvereinken alapuló művek szabad állapota, valamint segítse el [...]
+
+GARANCIAVÁLLALÁS HIÁNYA
+11. MIVEL JELEN PROGRAM DÍJMENTESEN KERÜL ENGEDÉLYEZÉSRE, A JOGSZABÁLYOKBAN MEGHATÁROZOTT KERETEKIG KIZÁRJUK A PROGRAMMAL KAPCSOLATOS GARANCIÁT. AMENNYIBEN ÍRÁSBAN ETTŐL ELTÉRŐEN NEM RENDELKEZNEK, A SZERZŐI JOGI JOGOSULTAK ÉS /VAGY HARMADIK SZEMÉLYEK A PROGRAMOT "JELEN ÁLLAPOTÁBAN" (AHOGY VAN) BOCSÁTJÁK RENDELKEZÉSRE, BÁRMILYEN GARANCIA NÉLKÜL, SEM KIFEJEZETTEN, SEM BELEFOGLALVA, IDE ÉRTVE - DE NEM KORLÁTOZVA – FORGALOMBAHOZATAL VAGY EGY BIZONYOS CÉLRA TÖRTÉNŐ ALKALMAZHATÓSÁGRA VONATKOZÓ [...]
+
+12. SEMMILYEN ESETBEN SEM – KIVÉVE, HA A HATÁLYOS JOGSZABÁLYOK MEGKÍVÁNJÁK VAGY ÍRÁSBAN RÖGZÍTÉSRE KERÜLT - KÖTELES A VAGYONI JOGI JOGOSULT VAGY VALAMELY, A PROGRAMOT A FENTEBB RÖGZÍTETT ENGEDÉLY ALAPJÁN ÁTDOLGOZÓ VAGY TERJESZTŐ HARMADIK SZEMÉLY ÖNNEL SZEMBEN KÁRÉRT, IDE ÉRTVE AZ ÁLTALÁNOS VAGY KÜLÖNÖS KÁROKÉRT KÁROK MELLÉKHATÁSAIÉRT VAGY KÖVETKEZMÉNYEIÉRT, AMELYEK A PROGRAM HASZNÁLATÁBÓL VAGY HASZNÁLHATATLANSÁGÁBÓL EREDTEK (IDE ÉRTVE, DE NEM KORLÁTOZVA AZ ADATVESZTÉSRE, AZ ADATOK HIBÁS  [...]
+
+FELTÉTELEK ÉS SZABÁLYOK VÉGE
+
+Fordította: Dr. Dudás Ágnes
\ No newline at end of file
diff --git a/bell.wav b/bell.wav
new file mode 100644
index 0000000..4e730f8
Binary files /dev/null and b/bell.wav differ
diff --git a/default.col b/default.col
new file mode 100644
index 0000000..723f0d0
--- /dev/null
+++ b/default.col
@@ -0,0 +1 @@
+{'clusterfg': '#360000', 'detailcall': 'brown', 'clusterbg': '#ceeeab', 'detailcountry': 'red', 'spotbg': '#c1c0c0', 'call7bg': 'lightblue', 'call9bg': 'purple', 'call8bg': 'pink', 'call9fg': 'yellow', 'call8fg': 'black', 'call3bg': 'darkgreen', 'consolefg': '#dbff12', 'detailbg': '#ffffc1', 'call5bg': '#b4cc00', 'call4bg': '#d37800', 'call3fg': 'yellow', 'consolebg': 'black', 'call6bg': 'yellow', 'call7fg': 'black', 'detailfg': 'black', 'spotfg': 'black', 'call6fg': 'black', 'call2fg':  [...]
\ No newline at end of file
diff --git a/pyDxCluster_v2_21.py b/pyDxCluster_v2_21.py
new file mode 100644
index 0000000..8907ca8
--- /dev/null
+++ b/pyDxCluster_v2_21.py
@@ -0,0 +1,2593 @@
+#!/usr/bin/python
+#coding:utf-8
+###################################################################################
+########################### PyDX Cluster v1.2 by HA1EM x###########################
+###################################################################################
+
+###################################################################################
+from Tkinter import *
+import telnetlib, string, sys, os, subprocess, re
+import requests
+import pygame
+
+from tkColorChooser import askcolor 
+from math import pi, sin, cos, atan2, sqrt, radians, log, tan, degrees
+
+version="v2.21"
+pygame.mixer.init()
+pygame.mixer.music.load("bell.wav")
+pygame.mixer.music.play()
+
+try: 
+	f = open("pydxcluster.cfg","r")
+	settings = eval(f.read())
+	f.close()
+except:
+	settings = {"host": "", "port": "", "user":"","password":"","ch2200":"1","ch660":"1","ch160":"1","ch80":"1","ch60":"1","ch40":"1","ch30":"1","ch20":"1","ch17":"1","ch15":"1","ch12":"1","ch10":"1","ch6":"1","ch4":"1","ch2":"1","ch70":"1","mainwindowx":0,"mainwindowy":25,"detailwindowx":572,"detailwindowy":274,"viewdetails":1,"consolewindowx":0,"consolewindowy":443,"viewconsole":1,"qrzuser":"","qrzpasswd":"","viewobserver":1,"observerwindowx":569,"observerwindowy":497,"obs1":"","obs2":"", [...]
+	f = open("pydxcluster.cfg", "w")
+	f.write(str(settings))
+	f.close()
+	f = open("pydxcluster.cfg","r")
+	settings = eval(f.read())
+	f.close()
+	
+	
+################################# color map load ####################################
+try: 
+	fc = open("default.col","r")
+	colorsettings = eval(fc.read())
+	fc.close()
+except:
+	colorsettings = {"clusterbg":"white","clusterfg":"black","consolebg":"black","consolefg":"#dbff12","spotbg":"#a6f687","spotfg":"black","detailbg":"white","detailfg":"black","detailcall":"brown","detailcountry":"red","call1bg":"red","call1fg":"yellow","call2bg":"blue","call2fg":"yellow","call3bg":"darkgreen","call3fg":"yellow","call4bg":"black","call4fg":"yellow","call5bg":"orange","call5fg":"black","call6bg":"yellow","call6fg":"black","call7bg":"lightblue","call7fg":"black","call8bg":"p [...]
+	fc = open("default.col", "w")
+	fc.write(str(colorsettings))
+	fc.close()
+	fc = open("default.col","r")
+	colorsettings = eval(fc.read())
+	fc.close()
+#####################################################################################	
+
+pskrep = 1
+pskrepconnected=0
+
+
+usercallsign=settings['usercallsign']
+usergridloc=settings['usergridloc']
+qrzcquser=settings['qrzcquser']
+qrzcqpass=settings['qrzcqpass']
+qthlocuser=settings['qthlocuser']
+qthlocpass=settings['qthlocpass']
+olddetailselection=detailselection=settings['detailselection']
+connect_message=settings['connect_message']
+rbhost=settings['rbhost']
+rbport=settings['rbport']
+reversebeacon=settings['rbon']
+clusterview=settings['clusterview']
+rbview=settings['beaconview']
+pskrepview=settings['pskrepview']
+
+clusterbg=colorsettings["clusterbg"]
+clusterfg=colorsettings["clusterfg"]
+consolebg=colorsettings["consolebg"]
+consolefg=colorsettings["consolefg"]
+spotbg=colorsettings["spotbg"]
+spotfg=colorsettings["spotfg"]
+detailbg=colorsettings["detailbg"]
+detailfg=colorsettings["detailfg"]
+detailcall=colorsettings["detailcall"]
+detailcountry=colorsettings["detailcountry"]
+call1bg=colorsettings["call1bg"]
+call1fg=colorsettings["call1fg"]
+call2bg=colorsettings["call2bg"]
+call2fg=colorsettings["call2fg"]
+call3bg=colorsettings["call3bg"]
+call3fg=colorsettings["call3fg"]
+call4bg=colorsettings["call4bg"]
+call4fg=colorsettings["call4fg"]
+call5bg=colorsettings["call5bg"]
+call5fg=colorsettings["call5fg"]
+call6bg=colorsettings["call6bg"]
+call6fg=colorsettings["call6fg"]
+call7bg=colorsettings["call7bg"]
+call7fg=colorsettings["call7fg"]
+call8bg=colorsettings["call8bg"]
+call8fg=colorsettings["call8fg"]
+call9bg=colorsettings["call9bg"]
+call9fg=colorsettings["call9fg"]
+call10bg=colorsettings["call10bg"]
+call10fg=colorsettings["call10fg"]
+######################### load LICENSE.txt ##########################################
+try:
+	lic = open("LICENSE.txt","r")
+	licence = lic.read()
+	lic.close()	
+except:
+	licence="LICENCE.txt is not read...\nPresent in deirectory?"
+#####################################################################################
+
+rootposition="805x440"+"+"+str(settings["mainwindowx"])+"+"+str(settings["mainwindowy"])
+root=Tk()
+root.title("pyDXCluster "+version+" by HA1EM")
+root.configure(bg='#C9C9C9')
+root.resizable(0,0)
+root.geometry(rootposition)
+
+######################### Global variables definitions ############################
+HOST = settings["host"]
+PORT = settings["port"]
+user = settings["user"]
+password = settings["password"]
+qrzuser=settings["qrzuser"]
+qrzpass=settings["qrzpasswd"]
+respone=''
+call =''
+freq=''
+dx=''
+utc=''
+utc1=''
+filename=''
+callcountry=''
+dxcountry=''
+comment=''
+adat=''
+gridloc=''
+heading=""
+connected=0
+tn=""
+kiiras=0
+distance=""
+connectstatus=0
+ch2200=IntVar()
+ch660=IntVar()
+ch160=IntVar()
+ch80=IntVar()
+ch60=IntVar()
+ch40=IntVar()
+ch30=IntVar()
+ch20=IntVar()
+ch17=IntVar()
+ch15=IntVar()
+ch12=IntVar()
+ch10=IntVar()
+ch6=IntVar()
+ch4=IntVar()
+ch2=IntVar()
+ch70=IntVar()
+
+md_cw=IntVar()
+md_rtty=IntVar()
+md_psk31=IntVar()
+md_psk63=IntVar()
+md_psk125=IntVar()
+md_jt65=IntVar()
+md_jt9=IntVar()
+md_sim31=IntVar()
+md_opera=IntVar()
+md_ssb=IntVar()
+
+detail_ablak=settings["viewdetails"]
+console_ablak=settings["viewconsole"]
+observer_ablak=settings["viewobserver"]
+abutwindow=0
+prefwindow=0
+userwindow=0
+_session_key=''
+_session_key1=''
+_session_key2=''
+qrzconnected=0
+obs1=settings["obs1"]
+obs2=settings["obs2"]
+obs3=settings["obs3"]
+obs4=settings["obs4"]
+obs5=settings["obs5"]
+obs6=settings["obs6"]
+obs7=settings["obs7"]
+obs8=settings["obs8"]
+obs9=settings["obs9"]
+obs10=settings["obs10"]
+alszik=0
+A=ord('A');safety=22
+kiirtadat=0
+reverseconnected=0
+rb=""
+pin=""
+obc3=0
+obc4=0
+response=""	
+response1=""
+response2=""
+telnet_input=""
+
+###################################################################################
+
+def checkuserloc(locator):
+    ####################### loc hossz ellenőrzés ##################
+	if len(locator)>3 and len(locator)<7 and len(locator)!=5:
+		if len(locator)==4:
+			locatorx=locator[0:2]
+			if locatorx.isalpha():
+				locatorx=locator[2:3]
+				if not locatorx.isalpha():
+					locatorx=locator[3:4]
+					if not locatorx.isalpha():
+						return "ok"
+					else:
+						return "bad"
+				else:
+					return "bad"
+			else:
+				return "bad"
+		if len(locator)==6:
+			locatorx=locator[0:2]
+			if locatorx.isalpha():
+				locatorx=locator[2:3]
+				if not locatorx.isalpha():
+					locatorx=locator[3:4]
+					if not locatorx.isalpha():
+						locatorx=locator[4:7]
+						if locatorx.isalpha():
+							return"ok"
+						else: return "bad"
+					else:
+						return "bad"
+				else:
+					return "bad"
+			else:
+				return "bad"
+	else:
+		lconsole.insert(END,"Please set CORRECT User Locator!")
+		lconsole.yview(END)			
+		lconsole.insert(END,"format is 'JN87KO' or 'JN87'")
+		lconsole.yview(END)			
+		return "bad"
+
+	
+
+def f(z):
+    return 10**(-(z-1)/2)*24**(-z/2)
+def locator_to_latlong (locator):
+	global safety
+	locator = locator.upper()
+	longit=latit=-90
+	lets=re.findall(r'([A-Xa-x])([A-Xa-x])',locator)
+	nums=re.findall(r'(\d)(\d)', locator)
+	i=tot=0
+	val=range(0,safety) 
+	for m in val:
+		val[m]=None 
+	for x,y in lets:
+		val[i*2]=(ord(string.upper(x))-A,ord(string.upper(y))-A)
+		i+=1
+		tot+=1
+	i=0
+	for x,y in nums:
+		val[i*2+1]=(string.atoi(x),string.atoi(y))
+		i+=1
+		tot+=1
+	i=0
+	for x,y in val[0:min(tot,safety-1)]:
+		longit+=f(i-1)*x
+		latit+=f(i-1)*y
+		i+=1
+	longit*=2
+
+	return latit, longit
+
+def locatordistance(locator1, locator2):
+    R = 6371 
+    lat1, long1 = locator_to_latlong(locator1)
+    lat2, long2 = locator_to_latlong(locator2)
+    
+    d_lat = radians(lat2) - radians(lat1)
+    d_long = radians(long2) - radians(long1)
+    
+    r_lat1 = radians(lat1)
+    r_long1 = radians(long1)
+    r_lat2 = radians(lat2)
+    r_long2 = radians(long2)
+    
+    a = sin(d_lat/2) * sin(d_lat/2) + cos(r_lat1) * cos(r_lat2) * sin(d_long/2) * sin(d_long/2)
+    c = 2 * atan2(sqrt(a), sqrt(1-a))
+    d = R * c 
+    
+    return d;    
+    
+def calculate_heading(locator1, locator2):
+    lat1, long1 = locator_to_latlong(locator1)
+    lat2, long2 = locator_to_latlong(locator2)
+    
+    r_lat1 = radians(lat1)
+    r_lon1 = radians(long1)
+    
+    r_lat2 = radians(lat2)
+    r_lon2 = radians(long2)
+
+    d_lon = radians(long2 - long1)
+    
+    b = atan2(sin(d_lon)*cos(r_lat2),cos(r_lat1)*sin(r_lat2)-sin(r_lat1)*cos(r_lat2)*cos(d_lon)) # bearing calc
+    bd = degrees(b)
+    br,bn = divmod(bd+360,360) 
+    
+    return bn    
+
+
+def saveconfig():
+	global HOST,PORT,user,password,qrzuser,qrzpass
+	global ch2200,ch660,ch160,ch80,ch40,ch30,ch20,ch17,ch15,ch12,ch10,ch6,ch4,ch2,ch70
+	global md_cw,md_rtty,md_psk31,md_psk63,md_psk125,md_jt65,md_jt9,md_sim31,md_opera,md_ssb
+	
+	global obs1,obs2,obs3,obs4,obs5,obs6,obs7,obs8,obs9,obs10
+	global rbkapcs,reversebeacon,clusterview,beaconview
+	x=root.winfo_rootx()-2
+	y=root.winfo_rooty()-48
+	if detail_ablak==1:
+		dx=detail.winfo_rootx()-2
+		dy=detail.winfo_rooty()-18
+	else:
+		dx=detail.winfo_rootx()
+		dy=detail.winfo_rooty()
+	if console_ablak==1:
+		cx=consolewin.winfo_rootx()-2
+		cy=consolewin.winfo_rooty()-18
+	else:
+		cx=consolewin.winfo_rootx()
+		cy=consolewin.winfo_rooty()		
+	if observer_ablak==1:
+		ox=observer.winfo_rootx()-2
+		oy=observer.winfo_rooty()-18
+	else:
+		ox=observer.winfo_rootx()
+		oy=observer.winfo_rooty()	
+
+	if rbkapcs==1: reversebeacon=1
+	settings = {"host": HOST, "port": str(PORT), "user":user,"password":password,"ch2200":str(ch2200.get()),"ch660":str(ch660.get()),"ch160":str(ch160.get()),"ch80":str(ch80.get()),"ch60":str(ch60.get()),"ch40":str(ch40.get()),"ch30":str(ch30.get()),"ch20":str(ch20.get()),"ch17":str(ch17.get()),"ch15":str(ch15.get()),"ch12":str(ch12.get()),"ch10":str(ch10.get()),"ch6":str(ch6.get()),"ch4":str(ch4.get()),"ch2":str(ch2.get()),"ch70":str(ch70.get()),"mainwindowx":x,"mainwindowy":y,"detailwindo [...]
+	f = open("pydxcluster.cfg", "w")
+	f.write(str(settings))
+	f.close()	
+	colorsettings = {"clusterbg":clusterbg,"clusterfg":clusterfg,"consolebg":consolebg,"consolefg":consolefg,"spotbg":spotbg,"spotfg":spotfg,"detailbg":detailbg,"detailfg":detailfg,"detailcall":detailcall,"detailcountry":detailcountry,"call1bg":call1bg,"call1fg":call1fg,"call2bg":call2bg,"call2fg":call2fg,"call3bg":call3bg,"call3fg":call3fg,"call4bg":call4bg,"call4fg":call4fg,"call5bg":call5bg,"call5fg":call5fg,"call6bg":call6bg,"call6fg":call6fg,"call7bg":call7bg,"call7fg":call7fg,"call8bg [...]
+	fc = open("default.col", "w")
+	fc.write(str(colorsettings))
+	fc.close()
+
+
+def teljeskilepes():
+	global tn,rb,reverseconnected,connected
+	if reverseconnected==1:rb.write("bye\n")
+	if connected==1:tn.write("quit\n")
+	saveconfig()
+	root.destroy()
+	detail.destroy()
+	consolewin.destroy()
+	abut.destroy()
+	observer.destroy()
+	prefwin.destroy()
+	userwin.destroy()
+
+
+def connect():
+	global HOST,PORT,user,password,connected,tn,_session_key,_session_key1,_session_key2,qrzuser,qrzpass,qrzconnected
+	global v
+	global reversebeacon,rb,reverseconnected
+	global pskrep,pskrepconnected,pin
+
+	if usergridloc=='' :
+		lconsole.insert(END,"Please set User Locator!")
+		lconsole.yview(END)		
+		return
+	if checkuserloc(usergridloc)=="bad": return
+	if usercallsign=='':
+		lconsole.insert(END,"Please set User CALLSIGN!")
+		lconsole.yview(END)		
+		return		
+
+	if qrzconnected==0:
+		########################################################### QRZ QUERY SETUP ##################################	
+		if v.get()=="QRZ":
+			
+			if qrzuser!='' and qrzpass!='':
+				regex = re.compile("<Key>(.*)</Key>")
+				url = '''https://xmldata.qrz.com/xml/current/?username={0}&password={1}'''.format(qrzuser,qrzpass)
+				r = requests.get(url, stream=True)
+				content = r.text
+				if "<error>" in content: 
+					qrzconnected=0
+				if "<Key>" in content:
+					_session_key1=content[content.find("<Key>")+5:content.find("</Key>")]
+					qrzconnected=1
+				else:
+					qrzconnected=0
+			else: qrzconnected=0
+		
+			
+		############################################# HAMCALL CONNECT  ###############################################	
+		if v.get()=="HAMCALL":
+			if qthlocuser!='' and qthlocpass!='':
+				regex = re.compile("<Key>(.*)</Key>")
+				url = '''http://www.hamqth.com/xml.php?u={0}&p={1}'''.format(qthlocuser,qthlocpass)
+				r = requests.get(url, stream=True)
+				content = r.text
+				if "<error>" in content: 
+					lconsole.insert(END,"Error to connect HamQTH.net!")
+					lconsole.yview(END)
+				if "<session_id>" in content:
+					_session_key=content[content.find("<session_id>")+12:content.find("</session_id>")]
+					qrzconnected=1
+					lconsole.insert(END,"Connected to HamQTH.net")
+					lconsole.yview(END)
+
+				else:
+					qrzconnected=0
+					lconsole.insert(END,"Not connected to HamQTH.net")
+					lconsole.yview(END)
+			else: qrzconnected=0			
+		############################################ QRZCQ CONNECT ###############################################
+		
+		if v.get()=="QRZCQ":
+			if qrzcquser!='' and qrzcqpass!='':
+				regex = re.compile("<Key>(.*)</Key>")
+				url = '''https://ssl.qrzcq.com/xml/?username={0}&password={1}'''.format(qrzcquser,qrzcqpass)
+				r = requests.get(url, stream=True)
+				content = r.text
+				if "<error>" in content: 
+					qrzconnected=0
+				if "<Key>" in content:
+					_session_key2=content[content.find("<Key>")+5:content.find("</Key>")]
+					qrzconnected=1
+				else:
+					qrzconnected=0
+			else: qrzconnected=0		
+     ############################################# CLUSTER SERVER CONNECT ################################################		
+	
+	if user!=''and HOST!='' and PORT!='':
+		if connected==0:
+			
+			try: 
+				tn = telnetlib.Telnet(HOST, PORT,3)
+			except: 			
+				lconsole.insert(END,"Connection error to "+HOST+" Please check connection data!")
+				lconsole.yview(END)
+				connected=0
+				return			
+			tn.write(user + "\n")
+			respone=tn.read_until("\n",0.8)
+			if "ERROR" in respone:
+				connected=0
+				lconsole.insert(END,"Username error to "+HOST+" Please check username!")
+				lconsole.yview(END)
+				return
+
+			
+			respone=tn.read_until("\n",0.8)
+			if "password:" in respone:
+				if password:
+					tn.write(password + "\n")
+				else:
+					lconsole.insert(END,"Request password on "+HOST+" Please check password!")
+					lconsole.yview(END)
+					connected=0
+					return					
+				respone=tn.read_until("\n",0.5)
+				if "ERROR" in respone:
+					lconsole.insert(END,"Password incorrect on "+HOST+" Please check password!")
+					lconsole.yview(END)
+					connected=0
+					return
+				else:
+					connected=1
+			else: connected=1
+
+		else:
+			tn.write("quit\n")
+			connected=0
+
+	respone=""		
+############################################### reverse Beacon connect ###############################################
+	reverseanswer=0
+	if reversebeacon==1:
+		if rbhost!="" and rbport!="":
+			if reverseconnected==0:
+				while (reverseanswer==0):
+					
+					try: 
+						rb = telnetlib.Telnet(rbhost, rbport,3)
+					except: 			
+						lconsole.insert(END,"Connection error to "+rbhost+" Please check connection data!")
+						lconsole.yview(END)
+						reverseconnected=0
+						return	
+					
+					respone=rb.read_until("\n",1) #9
+					lconsole.insert(END,"Connecting to "+rbhost+":"+rbport+"...please wait...")
+					lconsole.yview(END)					
+
+					if "call" in respone:
+
+						rb.write(user+ "\n")
+
+						try:
+							respone=rb.read_until("\n",4)
+							reverseanswer=len(respone)
+						except:
+							print "Timeout"
+
+
+						if "ERROR" in respone:
+							lconsole.insert(END,"callsign incorrect on "+rbhost+" Please check password!")
+							lconsole.yview(END)
+							reverseconnected=0
+							return
+						else:
+							reverseconnected=1
+					else: reverseconnected=1
+
+			else:
+				rb.write("bye\n")
+				rb.close
+				reverseconnected=0
+
+		
+		
+############################################### PSK Reporter connect ###############################################
+	if pskrep==1:
+		if pskrepconnected==0:
+			
+			try: 
+				pin = telnetlib.Telnet("pskreporter.info", 7300,3)
+			except: 			
+				lconsole.insert(END,"Connection error to PSKreporter.info! Please check connection data!")
+				lconsole.yview(END)
+				pskrepconnected=0
+
+				return			
+			pin.write(user + "\n")
+			respone=pin.read_until("\n",0.5)
+			if "ERROR" in respone:
+				connected=0
+				lconsole.insert(END,"Username error to PSKreporter.info! Please check username!")
+				lconsole.yview(END)
+				pskrepconnected=0
+				return
+
+			
+			respone=pin.read_until("\n",0.5)
+			if "Please enter your callsign:" in respone:
+				if password:
+					pin.write(usercallsign)
+					
+				respone=pin.read_until("\n",0.5)
+				if "ERROR" in respone:
+					lconsole.insert(END,"callsign incorrect on PSKreporter.info! Please check password!")
+					lconsole.yview(END)
+					pskrepconnected=0
+					return
+				else:
+					pskrepconnected=1
+			else: pskrepconnected=1
+		else:
+			pin.write("quit\n")
+			pskrepconnected=0			
+
+
+def callsign(callsign):	
+	global qrzuser,qrzpass,_session_key,session_key1,_session_key2,qrzconnected
+	global v
+	alszik=1
+	if qrzconnected==1:
+
+			if v.get()=="QRZ":
+				
+				
+				if _session_key1:
+					_session = requests.Session()
+					url = """https://xmldata.qrz.com/xml/current/?s={0}&callsign={1}""".format(_session_key1, callsign)
+					r = _session.get(url)
+					if "error" in r.content:
+						calldict={"name":"","country":"","fname":"","addr2":""}
+						return calldict
+								
+					if "<name>" in r.content: name=r.content[r.content.find("<name>")+6:r.content.find("</name>")]
+					else: name=""
+					if "<fname>" in r.content:fname=r.content[r.content.find("<fname>")+7:r.content.find("</fname>")]
+					else: fname=""
+					if "<addr2>" in r.content:addr2=r.content[r.content.find("<addr2>")+7:r.content.find("</addr2>")]
+					else: addr2=""
+					if "<country>" in r.content:country=r.content[r.content.find("<country>")+9:r.content.find("</country>")]
+					else: country=""
+					calldict={"name":name,"country":country,"fname":fname,"addr2":addr2}
+					return calldict
+					
+					if "not found" in r.content:
+						calldict="Not found"
+						return calldict
+
+				else:
+					return
+				alszik=0				
+
+			if v.get()=="QRZCQ":
+				
+				
+				if _session_key2:
+					_session = requests.Session()
+					url = """https://ssl.qrzcq.com/xml/?s={0}&callsign={1}""".format(_session_key2, callsign)
+					r = _session.get(url)
+					if "error" in r.content:
+						calldict={"name":"","country":"","fname":"","addr2":""}
+						return calldict
+								
+					if "<name>" in r.content: name=r.content[r.content.find("<name>")+6:r.content.find("</name>")]
+					else: name=""
+					if "<qth>" in r.content:fname=r.content[r.content.find("<qth>")+7:r.content.find("</qth>")]
+					else: fname=""
+					if "<addr2>" in r.content:addr2=r.content[r.content.find("<addr2>")+7:r.content.find("</addr2>")]
+					else: addr2=""
+					if "<country>" in r.content:country=r.content[r.content.find("<country>")+9:r.content.find("</country>")]
+					else: country=""
+					calldict={"name":name,"country":country,"fname":fname,"addr2":addr2}
+					return calldict
+					
+					if "not found" in r.content:
+						calldict="Not found"
+						return calldict
+
+				else:
+					return
+				alszik=0					
+
+			if v.get()=="HAMCALL":				
+				if _session_key:
+					_session = requests.Session()
+					url = """http://www.hamqth.com/xml.php?id={0}&callsign={1}""".format(_session_key, callsign)
+					r = _session.get(url)
+					if "error" in r.content:
+						calldict={"fname":"","country":"","name":"","addr2":""}
+						return calldict
+								
+					if "<nick>" in r.content:name=r.content[r.content.find("<nick>")+6:r.content.find("</nick>")]
+					else: name=""
+					if "<adr_city>" in r.content: city=r.content[r.content.find("<adr_city>")+10:r.content.find("</adr_city>")]
+					else: city=""					
+					if "<country>" in r.content:country=r.content[r.content.find("<country>")+9:r.content.find("</country>")]
+					else: country=""					
+					if "<adr_name>" in r.content:fname=r.content[r.content.find("<adr_name>")+10:r.content.find("</adr_name>")]
+					else: fname=""					
+					
+					calldict={"fname":fname,"country":country,"name":name,"addr2":city}
+					return calldict
+					
+					if "not found" in r.content:
+						calldict="Not found"
+						return calldict	
+				else:
+					a=a
+				alszik=0							
+
+
+def sendcommand(event):
+	global connected,tn
+	if connected==1:
+		tn.write(lconsolcomm.get()+"\n")
+		lconsolcomm.delete(0,END)
+def sendcomm():
+	global connected,tn
+	if connected==1:
+		tn.write(lconsolcomm.get()+"\n")
+		lconsolcomm.delete(0,END)
+#################################################### Foablak konfiguracio ##############################################################
+
+
+group_r1 = LabelFrame(root, text="Connect",bg='#C9C9C9',labelanchor=N)
+group_r1.pack(fill=X, expand=1)
+
+rbview_k=IntVar(group_r1)
+clusterview_k=IntVar(group_r1)
+pskrepview_k=IntVar(group_r1)
+
+connectbtn=Button(group_r1,width=10, text="Connect",font=("Sans",8),command=connect,bg='lightgray')
+connectbtn.grid(row=0, column=0, sticky=W,padx=5,pady=5)
+rbview_c = Checkbutton(group_r1, text="View Reverse Beacon",variable=rbview_k,font=("Sans",8),bg='#C9C9C9', fg='green')
+rbview_c.grid(row=0,sticky=W,padx=220)
+clusterview_c = Checkbutton(group_r1, text="View Cluster",variable=clusterview_k,font=("Sans",8),bg='#C9C9C9', fg='blue')
+clusterview_c.grid(row=0,sticky=W,padx=120)
+pskrepview_c = Checkbutton(group_r1, text="View PSKreporter",variable=pskrepview_k,font=("Sans",8),bg='#C9C9C9', fg='purple')
+pskrepview_c.grid(row=0,sticky=W,padx=370)
+
+if clusterview==1:
+	clusterview_c.toggle()
+if rbview==1:
+	rbview_c.toggle()	
+if pskrepview==1:
+	pskrepview_c.toggle()	
+
+group_rspot = LabelFrame(root, text="Spot",bg='#C9C9C9',labelanchor=N)
+group_rspot.pack(fill=X, expand=1)
+
+spotdx=Entry(group_rspot,width=10)
+spotdx.grid(row=4, column=0,sticky=W,padx=95)
+spotfreq=Entry(group_rspot,width=10)
+spotfreq.grid(row=4,column=0,sticky=W,padx=185)
+spotcomment=Entry(group_rspot,width=30)
+spotcomment.grid(row=4,column=0,sticky=W,padx=275)
+
+cimkespotdx=Label(group_rspot,text="Callsign",fg=spotfg,bg=spotbg,font=("Sans",8))
+cimkespotdx.grid(row=3,column=0,sticky=W,padx=116)
+cimkespotfreq=Label(group_rspot,text="Frequency",fg=spotfg,bg=spotbg,font=("Sans",8))
+cimkespotfreq.grid(row=3,column=0,sticky=W,padx=198)
+cimkespotcomm=Label(group_rspot,text="Comment",fg=spotfg,bg=spotbg,font=("Sans",8))
+cimkespotcomm.grid(row=3,column=0,sticky=W,padx=360)
+
+group_r2 = LabelFrame(root, text="Spot",bg='#C9C9C9',labelanchor=N)
+group_r2.pack(fill=X, expand=1)
+
+line4=Frame(group_r2,height=20,width=379,bg="red")
+line4.grid(row=5,column=0,sticky=W,padx=454)
+
+cimkeutc=Label(group_r2,text="UTC",fg="#5F5F5F",bg="#C9C9C9")
+cimkeutc.grid(row=5,column=0,sticky=W)
+cimkespotter=Label(group_r2,text="Spotter",fg="#5F5F5F",bg="#C9C9C9")
+cimkespotter.grid(row=5,column=0,sticky=W,padx=40)
+cimkefreq=Label(group_r2,text="Freq",fg="#5F5F5F",bg="#C9C9C9")
+cimkefreq.grid(row=5,column=0,sticky=W,padx=165)
+cimkecomment=Label(group_r2,text="Comment",fg="#5F5F5F",bg="#C9C9C9")
+cimkecomment.grid(row=5,column=0,sticky=W,padx=200)
+cimkedx=Label(group_r2,text="DX",fg="white",bg="red",font=("Sans",9,"bold"))
+cimkedx.grid(row=5,column=0,sticky=W,padx=456)
+
+cimkegrid=Label(group_r2,text="Grid",fg="white",bg="red",font=("Sans",9,"bold"))
+cimkegrid.grid(row=5,column=0,sticky=W,padx=544)
+cimkedistance=Label(group_r2,text="Distance",fg="white",bg="red",font=("Sans",9,"bold"))
+cimkedistance.grid(row=5,column=0,sticky=W,padx=607)
+cimkeheading=Label(group_r2,text="Head",fg="white",bg="red",font=("Sans",9,"bold"))
+cimkeheading.grid(row=5,column=0,sticky=W,padx=686)
+
+scrollbar = Scrollbar(group_r2,orient=VERTICAL)
+
+ldx=Listbox(group_r2,width=98,height=11,font=("Courier",10,"bold"),fg=clusterfg,bg=clusterbg,yscrollcommand=scrollbar.set)
+ldx.grid(row=6, sticky=W)
+scrollbar.grid(row=6,sticky=NS,padx=790)
+scrollbar.config(command=ldx.yview)
+
+line3=Frame(group_r2,height=189,width=2,bg="gray")
+line3.grid(row=6,column=0,sticky=W,padx=454)
+		
+group_r3 = LabelFrame(root, text="Band selector",bg='#C9C9C9',labelanchor=N)
+group_r3.pack(fill=X, expand=1)
+
+
+c2200 = Checkbutton(group_r3, text="2200m",variable=ch2200,font=("Sans",8),bg='#C9C9C9')
+c2200.grid(row=7,sticky=W,padx=15)
+c660 = Checkbutton(group_r3, text="660m",variable=ch660,font=("Sans",8),bg='#C9C9C9')
+c660.grid(row=7,sticky=W,padx=77)
+c160 = Checkbutton(group_r3, text="160m",variable=ch160,font=("Sans",8),bg='#C9C9C9')
+c160.grid(row=7,sticky=W,padx=132)
+c80 = Checkbutton(group_r3, text="80m",variable=ch80,font=("Sans",8),bg='#C9C9C9')
+c80.grid(row=7,sticky=W,padx=187)
+c60 = Checkbutton(group_r3, text="60m",variable=ch60,font=("Sans",8),bg='#C9C9C9')
+c60.grid(row=7,sticky=W,padx=235)
+c40 = Checkbutton(group_r3, text="40m",variable=ch40,font=("Sans",8),bg='#C9C9C9')
+c40.grid(row=7,sticky=W,padx=283)
+c30 = Checkbutton(group_r3, text="30m",variable=ch30,font=("Sans",8),bg='#C9C9C9')
+c30.grid(row=7,sticky=W,padx=331)
+c20 = Checkbutton(group_r3, text="20m",variable=ch20,font=("Sans",8),bg='#C9C9C9')
+c20.grid(row=7,sticky=W,padx=379)
+c17 = Checkbutton(group_r3, text="17m",variable=ch17,font=("Sans",8),bg='#C9C9C9')
+c17.grid(row=7,sticky=W,padx=427)
+c15 = Checkbutton(group_r3, text="15m",variable=ch15,font=("Sans",8),bg='#C9C9C9')
+c15.grid(row=7,sticky=W,padx=475)
+c12 = Checkbutton(group_r3, text="12m",variable=ch12,font=("Sans",8),bg='#C9C9C9')
+c12.grid(row=7,sticky=W,padx=523)
+c10 = Checkbutton(group_r3, text="10m",variable=ch10,font=("Sans",8),bg='#C9C9C9')
+c10.grid(row=7,sticky=W,padx=571)
+c6 = Checkbutton(group_r3, text="6m",variable=ch6,font=("Sans",8),bg='#C9C9C9')
+c6.grid(row=7,sticky=W,padx=619)
+c4 = Checkbutton(group_r3, text="4m",variable=ch4,font=("Sans",8),bg='#C9C9C9')
+c4.grid(row=7,sticky=W,padx=660)
+c2 = Checkbutton(group_r3, text="2m",variable=ch2,font=("Sans",8),bg='#C9C9C9')
+c2.grid(row=7,sticky=W,padx=701)
+c70 = Checkbutton(group_r3, text="70cm",variable=ch70,font=("Sans",8),bg='#C9C9C9')
+c70.grid(row=7,sticky=W,padx=740)
+if settings["ch2200"]=="1":c2200.toggle()
+if settings["ch660"]=="1":c660.toggle()
+if settings["ch160"]=="1":c160.toggle()
+if settings["ch80"]=="1":c80.toggle()
+if settings["ch60"]=="1":c60.toggle()
+if settings["ch40"]=="1":c40.toggle()
+if settings["ch30"]=="1":c30.toggle()
+if settings["ch20"]=="1":c20.toggle()
+if settings["ch17"]=="1":c17.toggle()
+if settings["ch15"]=="1":c15.toggle()
+if settings["ch12"]=="1":c12.toggle()
+if settings["ch10"]=="1":c10.toggle()
+if settings["ch6"]=="1":c6.toggle()
+if settings["ch4"]=="1":c4.toggle()
+if settings["ch2"]=="1":c2.toggle()
+if settings["ch70"]=="1":c70.toggle()
+
+
+
+
+
+group_r4 = LabelFrame(root, text="Mode selector",bg='#C9C9C9',labelanchor=N)
+group_r4.pack(fill=X, expand=1)
+
+m_cw = Checkbutton(group_r4, text="CW",variable=md_cw,font=("Sans",8),bg='#C9C9C9')
+m_cw.grid(row=8,sticky=W,padx=15)
+m_rtty = Checkbutton(group_r4, text="RTTY",variable=md_rtty,font=("Sans",8),bg='#C9C9C9')
+m_rtty.grid(row=8,sticky=W,padx=55)
+m_psk31 = Checkbutton(group_r4, text="PSK31",variable=md_psk31,font=("Sans",8),bg='#C9C9C9')
+m_psk31.grid(row=8,sticky=W,padx=105)
+m_psk63 = Checkbutton(group_r4, text="PSK63",variable=md_psk63,font=("Sans",8),bg='#C9C9C9')
+m_psk63.grid(row=8,sticky=W,padx=160)
+m_psk125 = Checkbutton(group_r4, text="PSK125",variable=md_psk125,font=("Sans",8),bg='#C9C9C9')
+m_psk125.grid(row=8,sticky=W,padx=215)
+m_jt9 = Checkbutton(group_r4, text="JT9",variable=md_jt9,font=("Sans",8),bg='#C9C9C9')
+m_jt9.grid(row=8,sticky=W,padx=278)
+m_jt65 = Checkbutton(group_r4, text="JT65",variable=md_jt65,font=("Sans",8),bg='#C9C9C9')
+m_jt65.grid(row=8,sticky=W,padx=316)
+m_sim31 = Checkbutton(group_r4, text="SIM31",variable=md_sim31,font=("Sans",8),bg='#C9C9C9')
+m_sim31.grid(row=8,sticky=W,padx=360)
+m_opera = Checkbutton(group_r4, text="OPERA",variable=md_opera,font=("Sans",8),bg='#C9C9C9')
+m_opera.grid(row=8,sticky=W,padx=411)
+m_ssb = Checkbutton(group_r4, text="SSB",variable=md_ssb,font=("Sans",8),bg='#C9C9C9')
+m_ssb.grid(row=8,sticky=W,padx=466)
+
+if settings["md_cw"]=="1":m_cw.toggle()
+if settings["md_rtty"]=="1":m_rtty.toggle()
+if settings["md_psk31"]=="1":m_psk31.toggle()
+if settings["md_psk63"]=="1":m_psk63.toggle()
+if settings["md_psk125"]=="1":m_psk125.toggle()
+if settings["md_jt9"]=="1":m_jt9.toggle()
+if settings["md_jt65"]=="1":m_jt65.toggle()
+if settings["md_sim31"]=="1":m_sim31.toggle()
+if settings["md_opera"]=="1":m_opera.toggle()
+if settings["md_ssb"]=="1":m_ssb.toggle()
+
+def details_win():
+	global detail_ablak
+	if detail_ablak==0:
+		detail.update()
+		detail.deiconify()
+		detail_ablak=1
+	else:
+		detail.withdraw()
+		detail_ablak=0
+		
+def console_win():
+	global console_ablak
+	if console_ablak==0:
+		consolewin.update()
+		consolewin.deiconify()
+		console_ablak=1
+	else:
+		consolewin.withdraw()
+		console_ablak=0
+		
+def observer_win():
+	global observer_ablak
+	if observer_ablak==0:
+		observer.update()
+		observer.deiconify()
+		observer_ablak=1
+	else:
+		observer.withdraw()
+		observer_ablak=0	
+		
+def preferences_win():
+	global prefwindow,alszik
+	if prefwindow==0:
+		alszik=1
+		prefwin.update()
+		prefwin.deiconify()
+		prefwindow=1
+	else:
+		prefwin.withdraw()
+		prefwindow=0		
+		saveconfig()		
+		alszik=0
+def user_win():
+	global userwindow,alszik
+	if userwindow==0:
+		#alszik=1
+		userwin.update()
+		userwin.deiconify()
+		userwindow=1
+	else:
+		userwin.withdraw()
+		userwindow=0		
+		saveconfig()		
+		#alszik=0		
+		
+#################################### Console window #########################################		
+detailposition="646x195+"+str(settings["consolewindowx"])+"+"+str(settings["consolewindowy"])
+consolewin = Tk()
+consolewin.protocol("WM_DELETE_WINDOW", console_win)
+consolewin.title("Console")
+consolewin.configure(bg='#C9C9C9')
+consolewin.geometry(detailposition)
+consolewin.resizable(0,0)
+btnconsole=Button(consolewin,text="Send command",font=("Sans",8),command=sendcomm)
+btnconsole.grid(row=9, column=0, sticky=W,padx=532,pady=5)
+if console_ablak==0:consolewin.withdraw()	
+lconsole=Listbox(consolewin, width=80,height=10,font=("Sans",9), bg=consolebg,fg=consolefg)
+lconsole.grid(row=8,sticky=W,padx=1)
+
+lconsolcomm=Entry(consolewin,width=65,font=("Sans",9), bg=consolebg,fg=consolefg)
+lconsolcomm.grid(row=9,sticky=W,pady=5)
+lconsolcomm.bind('<Return>', sendcommand)	
+#############################################################################################
+###################################### Details window #######################################
+detailposition="363x240+"+str(settings["detailwindowx"])+"+"+str(settings["detailwindowy"])
+detail=Tk()
+detail.protocol("WM_DELETE_WINDOW", details_win)
+detail.title("View details from QRZ.com")
+detail.geometry(detailposition)
+detail.configure(bg='#C9C9C9')
+if detail_ablak==0:detail.withdraw()
+detail.resizable(0,0)
+
+dxlab_cimke=Label(detail,text="Spotter",fg="#5F5F5F",bg="#C9C9C9")
+dxlabel=Listbox(detail,width=51,height=5,fg=detailfg,bg=detailbg,font=("Sans",8,"bold"))
+dxlab_cimke1=Label(detail,text="DX",fg="#5F5F5F",bg="#C9C9C9")
+dxlabel1=Listbox(detail,width=51,height=8,fg=detailfg,bg=detailbg,font=("Sans",8,"bold"))
+
+dxlab_cimke.grid(row=0,column=0,sticky=W,padx=145)
+dxlabel.grid(row=1,column=0,sticky=W)
+dxlab_cimke1.grid(row=2,column=0,sticky=W,padx=158)
+dxlabel1.grid(row=3,column=0,sticky=W)
+
+###############################################################################################
+######################################## Observer window ######################################
+observerposition="550x255+"+str(settings["observerwindowx"])+"+"+str(settings["observerwindowy"])
+observer=Tk()
+observer.protocol("WM_DELETE_WINDOW", observer_win)
+observer.title("Callsign Hunter")
+observer.geometry(observerposition)
+observer.configure(bg='#C9C9C9')
+if observer_ablak==0:observer.withdraw()
+observer.resizable(0,0)
+
+obcimke3_k=IntVar(observer)
+obcimke3 = Checkbutton(observer, text="Alarm sound",variable=obcimke3_k,font=("Sans",8),bg='#C9C9C9')
+obcimke3.grid(row=0,sticky=W,padx=5)
+obcimke4_k=IntVar(observer)
+obcimke4 = Checkbutton(observer, text="Bring to front",variable=obcimke4_k,font=("Sans",8),bg='#C9C9C9')
+obcimke4.grid(row=0,sticky=W,padx=165)
+
+
+obcimke=Label(observer,text="Callsigns",fg="#5F5F5F",bg="#C9C9C9")
+obcimke.grid(row=1,column=0,sticky=W,padx=55)
+obcimke1=Label(observer,text="Last freq",fg="#5F5F5F",bg="#C9C9C9")
+obcimke1.grid(row=1,column=0,sticky=W,padx=185)
+obcimke2=Label(observer,text="Last time",fg="#5F5F5F",bg="#C9C9C9")
+obcimke2.grid(row=1,column=0,sticky=W,padx=280)
+obcimke5=Label(observer,text="Last Call",fg="#5F5F5F",bg="#C9C9C9")
+obcimke5.grid(row=1,column=0,sticky=W,padx=376)
+obcimke6=Label(observer,text="Last Mode",fg="#5F5F5F",bg="#C9C9C9")
+obcimke6.grid(row=1,column=0,sticky=W,padx=466)
+
+ob1=Entry(observer,width=20,font=("Sans",9), bg=call1bg,fg=call1fg)
+ob1.grid(row=2,column=0,sticky=W)
+obf1=Entry(observer,width=10,font=("Sans",9),disabledforeground="black")
+obf1.grid(row=2,column=0,sticky=W,padx=170)
+obt1=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obt1.grid(row=2,column=0,sticky=W,padx=265)
+obcl1=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obcl1.grid(row=2,column=0,sticky=W,padx=360)
+obm1=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obm1.grid(row=2,column=0,sticky=W,padx=453)
+
+ob2=Entry(observer,width=20,font=("Sans",9), bg=call2bg,fg=call2fg)
+ob2.grid(row=3,column=0,sticky=W)
+obf2=Entry(observer,width=10,font=("Sans",9),disabledforeground="black")
+obf2.grid(row=3,column=0,sticky=W,padx=170)
+obt2=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obt2.grid(row=3,column=0,sticky=W,padx=265)
+obcl2=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obcl2.grid(row=3,column=0,sticky=W,padx=360)
+obm2=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obm2.grid(row=3,column=0,sticky=W,padx=453)
+
+ob3=Entry(observer,width=20,font=("Sans",9), bg=call3bg,fg=call3fg)
+ob3.grid(row=4,column=0,sticky=W)
+obf3=Entry(observer,width=10,font=("Sans",9),disabledforeground="black")
+obf3.grid(row=4,column=0,sticky=W,padx=170)
+obt3=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obt3.grid(row=4,column=0,sticky=W,padx=265)
+obcl3=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obcl3.grid(row=4,column=0,sticky=W,padx=360)
+obm3=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obm3.grid(row=4,column=0,sticky=W,padx=453)
+
+ob4=Entry(observer,width=20,font=("Sans",9), bg=call4bg,fg=call4fg)
+ob4.grid(row=5,column=0,sticky=W)
+obf4=Entry(observer,width=10,font=("Sans",9),disabledforeground="black")
+obf4.grid(row=5,column=0,sticky=W,padx=170)
+obt4=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obt4.grid(row=5,column=0,sticky=W,padx=265)
+obcl4=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obcl4.grid(row=5,column=0,sticky=W,padx=360)
+obm4=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obm4.grid(row=5,column=0,sticky=W,padx=453)
+
+ob5=Entry(observer,width=20,font=("Sans",9), bg=call5bg,fg=call5fg)
+ob5.grid(row=6,column=0,sticky=W)
+obf5=Entry(observer,width=10,font=("Sans",9),disabledforeground="black")
+obf5.grid(row=6,column=0,sticky=W,padx=170)
+obt5=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obt5.grid(row=6,column=0,sticky=W,padx=265)
+obcl5=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obcl5.grid(row=6,column=0,sticky=W,padx=360)
+obm5=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obm5.grid(row=6,column=0,sticky=W,padx=453)
+
+ob6=Entry(observer,width=20,font=("Sans",9), bg=call6bg,fg=call6fg)
+ob6.grid(row=7,column=0,sticky=W)
+obf6=Entry(observer,width=10,font=("Sans",9),disabledforeground="black")
+obf6.grid(row=7,column=0,sticky=W,padx=170)
+obt6=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obt6.grid(row=7,column=0,sticky=W,padx=265)
+obcl6=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obcl6.grid(row=7,column=0,sticky=W,padx=360)
+obm6=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obm6.grid(row=7,column=0,sticky=W,padx=453)
+
+ob7=Entry(observer,width=20,font=("Sans",9), bg=call7bg,fg=call7fg)
+ob7.grid(row=8,column=0,sticky=W)
+obf7=Entry(observer,width=10,font=("Sans",9),disabledforeground="black")
+obf7.grid(row=8,column=0,sticky=W,padx=170)
+obt7=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obt7.grid(row=8,column=0,sticky=W,padx=265)
+obcl7=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obcl7.grid(row=8,column=0,sticky=W,padx=360)
+obm7=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obm7.grid(row=8,column=0,sticky=W,padx=453)
+
+ob8=Entry(observer,width=20,font=("Sans",9), bg=call8bg,fg=call8fg)
+ob8.grid(row=9,column=0,sticky=W)
+obf8=Entry(observer,width=10,font=("Sans",9),disabledforeground="black")
+obf8.grid(row=9,column=0,sticky=W,padx=170)
+obt8=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obt8.grid(row=9,column=0,sticky=W,padx=265)
+obcl8=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obcl8.grid(row=9,column=0,sticky=W,padx=360)
+obm8=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obm8.grid(row=9,column=0,sticky=W,padx=453)
+
+ob9=Entry(observer,width=20,font=("Sans",9), bg=call9bg,fg=call9fg)
+ob9.grid(row=10,column=0,sticky=W)
+obf9=Entry(observer,width=10,font=("Sans",9),disabledforeground="black")
+obf9.grid(row=10,column=0,sticky=W,padx=170)
+obt9=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obt9.grid(row=10,column=0,sticky=W,padx=265)
+obcl9=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obcl9.grid(row=10,column=0,sticky=W,padx=360)
+obm9=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obm9.grid(row=10,column=0,sticky=W,padx=453)
+
+ob10=Entry(observer,width=20,font=("Sans",9), bg=call10bg,fg=call10fg)
+ob10.grid(row=11,column=0,sticky=W)
+obf10=Entry(observer,width=10,font=("Sans",9),disabledforeground="black")
+obf10.grid(row=11,column=0,sticky=W,padx=170)
+obt10=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obt10.grid(row=11,column=0,sticky=W,padx=265)
+obcl10=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obcl10.grid(row=11,column=0,sticky=W,padx=360)
+obm10=Entry(observer,width=10,font=("Sans",9),disabledforeground="black", justify="center")
+obm10.grid(row=11,column=0,sticky=W,padx=453)
+
+ob1.delete(0,END)
+ob1.insert(0,obs1)
+ob2.delete(0,END)
+ob2.insert(0,obs2)
+ob3.delete(0,END)
+ob3.insert(0,obs3)
+ob4.delete(0,END)
+ob4.insert(0,obs4)
+ob5.delete(0,END)
+ob5.insert(0,obs5)
+ob6.delete(0,END)
+ob6.insert(0,obs6)
+ob7.delete(0,END)
+ob7.insert(0,obs7)
+ob8.delete(0,END)
+ob8.insert(0,obs8)
+ob9.delete(0,END)
+ob9.insert(0,obs9)
+ob10.delete(0,END)
+ob10.insert(0,obs10)
+obf1.config(state=DISABLED)
+obf2.config(state=DISABLED)
+obf3.config(state=DISABLED)
+obf4.config(state=DISABLED)
+obf5.config(state=DISABLED)
+obf6.config(state=DISABLED)
+obf7.config(state=DISABLED)
+obf8.config(state=DISABLED)
+obf9.config(state=DISABLED)
+obf10.config(state=DISABLED)
+
+obt1.config(state=DISABLED)
+obt2.config(state=DISABLED)
+obt3.config(state=DISABLED)
+obt4.config(state=DISABLED)
+obt5.config(state=DISABLED)
+obt6.config(state=DISABLED)
+obt7.config(state=DISABLED)
+obt8.config(state=DISABLED)
+obt9.config(state=DISABLED)
+obt10.config(state=DISABLED)
+
+obcl1.config(state=DISABLED)
+obcl2.config(state=DISABLED)
+obcl3.config(state=DISABLED)
+obcl4.config(state=DISABLED)
+obcl5.config(state=DISABLED)
+obcl6.config(state=DISABLED)
+obcl7.config(state=DISABLED)
+obcl8.config(state=DISABLED)
+obcl9.config(state=DISABLED)
+obcl10.config(state=DISABLED)
+
+obm1.config(state=DISABLED)
+obm2.config(state=DISABLED)
+obm3.config(state=DISABLED)
+obm4.config(state=DISABLED)
+obm5.config(state=DISABLED)
+obm6.config(state=DISABLED)
+obm7.config(state=DISABLED)
+obm8.config(state=DISABLED)
+obm9.config(state=DISABLED)
+obm10.config(state=DISABLED)
+###############################################################################################
+
+root.protocol('WM_DELETE_WINDOW', teljeskilepes)	
+
+
+def help():
+	print
+	
+	
+def about():
+	global abutwindow
+	if abutwindow==0:
+		abut.update()
+		abut.deiconify()
+		abutwindow=1
+	else:
+		abut.withdraw()
+		abutwindow=0
+		
+###################################### User  window #####################################
+userwinposition="485x400"
+userwin=Tk()
+userwin.protocol("WM_DELETE_WINDOW", user_win)
+userwin.title("user settings")
+userwin.geometry(userwinposition)
+userwin.configure(bg='#C9C9C9')
+if userwindow==0:userwin.withdraw()
+userwin.resizable(0,0)		
+
+
+group1 = LabelFrame(userwin, text="User settings", padx=5, pady=5,bg='#C9C9C9',labelanchor=N)
+group1.pack(fill=X, expand=1)
+
+
+userl1=Label(group1,text="Callsign",bg='#C9C9C9')
+userl1.grid(row=0,column=0,sticky=W,padx=5)		
+userl1_1=Entry(group1,width=10,bg="white")
+userl1_1.grid(row=0,column=0,sticky=W,padx=60)
+userl2=Label(group1,text="Locator",bg='#C9C9C9')
+userl2.grid(row=0,column=0,sticky=W,padx=150)		
+userl2_1=Entry(group1,width=6,bg="white")
+userl2_1.grid(row=0,column=0,sticky=W,padx=200)
+
+group2 = LabelFrame(userwin, text="Cluster server settings",padx=5, pady=5,bg='#C9C9C9',labelanchor=N)
+group2.pack(fill=X, expand=1)
+
+	
+connecthosttext=Label(group2,text="Host:",bg="#C9C9C9")
+connecthosttext.grid(row=0,column=0,sticky=W,padx=5)
+connecthost=Entry(group2,width=20,disabledbackground="#c8c8c8")
+connecthost.grid(row=0,column=0,sticky=W,padx=40)
+connectporttext=Label(group2,text="Port:",bg="#C9C9C9")
+connectporttext.grid(row=0,column=0,sticky=W,padx=210)
+connectport=Entry(group2,width=6,disabledbackground="#c8c8c8")
+connectport.grid(row=0,column=0,sticky=W,padx=242)
+connectusertext=Label(group2,text="User:",bg="#C9C9C9")
+connectusertext.grid(row=1,column=0,sticky=W,padx=5,pady=5)
+connectuser=Entry(group2,width=10,disabledbackground="#c8c8c8")
+connectuser.grid(row=1,column=0,sticky=W,padx=40)
+connectpasswordtext=Label(group2,text="Password:",bg="#C9C9C9")
+connectpasswordtext.grid(row=1,column=0,sticky=W,padx=130)
+connectpassword=Entry(group2,width=20,show="*",disabledbackground="#c8c8c8")
+connectpassword.grid(row=1,column=0,sticky=W,padx=192)
+connectmessagetext=Label(group2,text="Default spot message:",bg="#C9C9C9")
+connectmessagetext.grid(row=2,column=0,sticky=W,padx=5,pady=5)
+connectmessage=Entry(group2,width=30,disabledbackground="#c8c8c8")
+connectmessage.grid(row=2,column=0,sticky=W,padx=142)
+
+group3 = LabelFrame(userwin, text="Detail information source",padx=5, pady=5,bg='#C9C9C9',labelanchor=N)
+group3.pack(fill=X, expand=1)
+
+
+qrzuserlabel=Label(group3,text="user:",bg="#C9C9C9")
+qrzuserlabel.grid(row=8,column=0,sticky=W,padx=115)
+qrzuserentry=Entry(group3,width=10, disabledbackground="#c8c8c8")
+qrzuserentry.grid(row=8,column=0,sticky=W,padx=150)
+qrzpasslabel=Label(group3,text="password:",bg="#C9C9C9")
+qrzpasslabel.grid(row=8,column=0,sticky=W,padx=240)
+qrzpassentry=Entry(group3,width=20, show="*", disabledbackground="#c8c8c8")
+qrzpassentry.grid(row=8,column=0,sticky=W,padx=305)
+
+qrzcquserlabel=Label(group3,text="user:",bg="#C9C9C9")
+qrzcquserlabel.grid(row=9,column=0,sticky=W,padx=115)
+qrzcquserentry=Entry(group3,width=10, disabledbackground="#c8c8c8")
+qrzcquserentry.grid(row=9,column=0,sticky=W,padx=150)
+qrzcqpasslabel=Label(group3,text="password:",bg="#C9C9C9")
+qrzcqpasslabel.grid(row=9,column=0,sticky=W,padx=240)
+qrzcqpassentry=Entry(group3,width=20, show="*", disabledbackground="#c8c8c8")
+qrzcqpassentry.grid(row=9,column=0,sticky=W,padx=305)
+
+hamcalluserlabel=Label(group3,text="user:",bg="#C9C9C9")
+hamcalluserlabel.grid(row=10,column=0,sticky=W,padx=115)
+hamcalluserentry=Entry(group3,width=10, disabledbackground="#c8c8c8")
+hamcalluserentry.grid(row=10,column=0,sticky=W,padx=150)
+hamcallpasslabel=Label(group3,text="password:",bg="#C9C9C9")
+hamcallpasslabel.grid(row=10,column=0,sticky=W,padx=240)
+hamcallpassentry=Entry(group3,width=20, show="*", disabledbackground="#c8c8c8")
+hamcallpassentry.grid(row=10,column=0,sticky=W,padx=305)
+
+group4 = LabelFrame(userwin, text="Reverse Beacon settings",padx=5, pady=5,bg='#C9C9C9',labelanchor=N)
+group4.pack(fill=X, expand=1)
+
+
+rbkapcs=IntVar(group4)
+rbhosttext=Label(group4,text="Host:",bg="#C9C9C9")
+rbhosttext.grid(row=1,column=0,sticky=W,padx=5)
+rbhoste=Entry(group4,width=30,disabledbackground="#c8c8c8")
+rbhoste.grid(row=1,column=0,sticky=W,padx=40)
+rbporttext=Label(group4,text="Port:",bg="#C9C9C9")
+rbporttext.grid(row=1,column=0,sticky=W,padx=310)
+rbporte=Entry(group4,width=6,disabledbackground="#c8c8c8")
+rbporte.grid(row=1,column=0,sticky=W,padx=342)
+rbkapcsb = Checkbutton(group4, text="Reverse beacon on/off",variable=rbkapcs,font=("Sans",8),bg='#C9C9C9')
+rbkapcsb.grid(row=0,sticky=W,padx=5)
+if reversebeacon==1:
+	rbkapcsb.toggle()
+
+v = StringVar(userwin)
+v.set(detailselection) # initialize
+
+b = Radiobutton(group3, text="None",variable=v, value="None",bg='#C9C9C9')	
+b.grid(row=7,column=0,sticky=W)
+b1 = Radiobutton(group3, text="QRZ.com",variable=v, value="QRZ",bg='#C9C9C9')	
+b1.grid(row=8,column=0,sticky=W)
+b2 = Radiobutton(group3, text="QRZCQ.com",variable=v, value="QRZCQ",bg='#C9C9C9')	
+b2.grid(row=9,column=0,sticky=W)
+b3 = Radiobutton(group3, text="HamQTH.com",variable=v, value="HAMCALL",bg='#C9C9C9')	
+b3.grid(row=10,column=0,sticky=W)
+
+userbtn=Button(userwin,width=10, text="Save&Exit",font=("Sans",8),command=user_win,bg='lightgray')
+userbtn.pack(fill=X,expand=1)
+
+rbhoste.delete(0,END)
+rbhoste.insert(0,rbhost)
+rbporte.delete(0,END)
+rbporte.insert(0,rbport)
+
+connecthost.delete(0,END)
+connecthost.insert(0,HOST)
+connectport.delete(0,END)
+connectport.insert(0,PORT)
+connectuser.delete(0,END)
+connectuser.insert(0,user)
+connectpassword.delete(0,END)
+connectpassword.insert(0,password)
+qrzuserentry.delete(0,END)
+qrzuserentry.insert(0,qrzuser)
+qrzpassentry.delete(0,END)
+qrzpassentry.insert(0,qrzpass)
+
+userl1_1.delete(0,END)
+userl1_1.insert(0,usercallsign)
+userl2_1.delete(0,END)
+userl2_1.insert(0,usergridloc)
+qrzcquserentry.delete(0,END)
+qrzcquserentry.insert(0,qrzcquser)
+qrzcqpassentry.delete(0,END)
+qrzcqpassentry.insert(0,qrzcqpass)
+hamcalluserentry.delete(0,END)
+hamcalluserentry.insert(0,qthlocuser)
+hamcallpassentry.delete(0,END)
+hamcallpassentry.insert(0,qthlocpass)
+connectmessage.delete(0,END)
+connectmessage.insert(0,connect_message)
+
+
+
+
+
+###################################### Preferences window #####################################
+preferencesposition="235x560"
+prefwin=Tk()
+prefwin.protocol("WM_DELETE_WINDOW", preferences_win)
+prefwin.title("Preferences")
+prefwin.geometry(preferencesposition)
+prefwin.configure(bg='#C9C9C9')
+if prefwindow==0:prefwin.withdraw()
+prefwin.resizable(0,0)
+
+def disablebuttons():
+	color1.config(state=DISABLED)
+	color2.config(state=DISABLED)
+	color3.config(state=DISABLED)
+	color4.config(state=DISABLED)
+	color5.config(state=DISABLED)
+	color6.config(state=DISABLED)
+	color7.config(state=DISABLED)
+	color8.config(state=DISABLED)
+	color9.config(state=DISABLED)
+	color10.config(state=DISABLED)
+	color11.config(state=DISABLED)
+	color12.config(state=DISABLED)
+	color13.config(state=DISABLED)
+	color14.config(state=DISABLED)
+	color15.config(state=DISABLED)
+	color16.config(state=DISABLED)
+	color17.config(state=DISABLED)
+	color18.config(state=DISABLED)
+	color19.config(state=DISABLED)
+	color20.config(state=DISABLED)
+	color21.config(state=DISABLED)
+	color22.config(state=DISABLED)
+	color23.config(state=DISABLED)
+	color24.config(state=DISABLED)
+	color25.config(state=DISABLED)
+	color26.config(state=DISABLED)
+	color27.config(state=DISABLED)
+	color28.config(state=DISABLED)
+	color29.config(state=DISABLED)
+	color30.config(state=DISABLED)
+	prefok.config(state=DISABLED)
+def enablebuttons():
+	color1.config(state=NORMAL)
+	color2.config(state=NORMAL)
+	color3.config(state=NORMAL)
+	color4.config(state=NORMAL)
+	color5.config(state=NORMAL)
+	color6.config(state=NORMAL)
+	color7.config(state=NORMAL)
+	color8.config(state=NORMAL)
+	color9.config(state=NORMAL)
+	color10.config(state=NORMAL)
+	color11.config(state=NORMAL)
+	color12.config(state=NORMAL)
+	color13.config(state=NORMAL)
+	color14.config(state=NORMAL)
+	color15.config(state=NORMAL)
+	color16.config(state=NORMAL)
+	color17.config(state=NORMAL)
+	color18.config(state=NORMAL)
+	color19.config(state=NORMAL)
+	color20.config(state=NORMAL)
+	color21.config(state=NORMAL)
+	color22.config(state=NORMAL)
+	color23.config(state=NORMAL)
+	color24.config(state=NORMAL)
+	color25.config(state=NORMAL)
+	color26.config(state=NORMAL)
+	color27.config(state=NORMAL)
+	color28.config(state=NORMAL)
+	color29.config(state=NORMAL)
+	color30.config(state=NORMAL)
+	prefok.config(state=NORMAL)
+	
+def getColor(number):
+	global clusterbg,clusterfg,consolebg,consolefg,spotbg,spotfg,detailbg,detailfg,detailcall,detailcountry
+	global call1bg,call1fg,call2bg,call2fg,call3bg,call3fg,call4bg,call4fg,call5bg,call5fg
+	global call6bg,call6fg,call7bg,call7fg,call8bg,call8fg,call9bg,call9fg,call10bg,call10fg
+	disablebuttons()
+	if number==1:
+		result = askcolor(color=clusterbg, title = "Change Cluster background color")		
+		colbox1.config(state=DISABLED,disabledbackground=result[1])
+		ldx.config(bg=result[1])
+		clusterbg=result[1]
+	if number==2:
+		result = askcolor(color=clusterfg, title = "Change Cluster text color")		
+		colbox1.config(state=DISABLED,disabledforeground=result[1])		
+		ldx.config(fg=result[1])
+		clusterfg=result[1]
+	if number==3:
+		result = askcolor(color=consolebg, title = "Change Console background color")		
+		colbox2.config(state=DISABLED,disabledbackground=result[1])		
+		lconsole.config(bg=result[1])	
+		lconsolcomm.config(bg=result[1])
+		consolebg=result[1]	
+	if number==4:
+		result = askcolor(color=consolefg, title = "Change Console text color")		
+		colbox2.config(state=DISABLED,disabledforeground=result[1])		
+		lconsole.config(fg=result[1])	
+		lconsolcomm.config(fg=result[1])	
+		consolefg=result[1]
+	if number==5:
+		result = askcolor(color=spotbg, title = "Change spot section background color")		
+		colbox3.config(state=DISABLED,disabledbackground=result[1])		
+		line1.config(bg=result[1])
+		line2.config(bg=result[1])
+		cimkespotdx.config(bg=result[1])
+		cimkespotfreq.config(bg=result[1])
+		cimkespotcomm.config(bg=result[1])
+		spotbg=result[1]	
+	if number==6:
+		result = askcolor(color=spotfg, title = "Change Spot section text color")		
+		colbox3.config(state=DISABLED,disabledforeground=result[1])		
+		cimkespotdx.config(fg=result[1])
+		cimkespotfreq.config(fg=result[1])
+		cimkespotcomm.config(fg=result[1])
+		spotfg=result[1]	
+	if number==7:
+		result = askcolor(color=detailbg, title = "Change Detail background color")		
+		colbox4.config(state=DISABLED,disabledbackground=result[1])		
+		dxlabel.config(bg=result[1])
+		dxlabel1.config(bg=result[1])
+		detailbg=result[1]	
+	if number==8:
+		result = askcolor(color=detailfg, title = "Change Detail text color")	
+		colbox4.config(state=DISABLED,disabledforeground=result[1])				
+		dxlabel.config(fg=result[1])
+		dxlabel1.config(fg=result[1])
+		detailfg=result[1]	
+	if number==9:
+		result = askcolor(color=detailcall, title = "Change Detail Callsign text color")	
+		color9.config(fg=result[1],activeforeground=result[1])	
+		detailcall=result[1]	
+	if number==10:
+		result = askcolor(color=detailcountry, title = "Change  detail Country text color")	
+		color10.config(fg=result[1],activeforeground=result[1])	
+		detailcountry=result[1]		
+	if number==11: #call hunter bgcolor #1
+		result = askcolor(color=call1bg, title = "Change Call Hunter Background color")	
+		colbox5.config(state=DISABLED,disabledbackground=result[1])	
+		ob1.config(bg=result[1])												
+		call1bg=result[1]
+	if number==12: #call hunter fgcolor #1
+		result = askcolor(color=call1fg, title = "Change Call Hunter text color")	
+		colbox5.config(state=DISABLED,disabledforeground=result[1])	
+		ob1.config(fg=result[1])															
+		call1fg=result[1]		
+	if number==13: #call hunter bgcolor #2
+		result = askcolor(color=call2bg, title = "Change Call Hunter Background color")	
+		colbox6.config(state=DISABLED,disabledbackground=result[1])	
+		ob2.config(bg=result[1])												
+		call2bg=result[1]
+	if number==14: #call hunter fgcolor #2
+		result = askcolor(color=call2fg, title = "Change Call Hunter text color")	
+		colbox6.config(state=DISABLED,disabledforeground=result[1])	
+		ob2.config(fg=result[1])															
+		call2fg=result[1]	
+	if number==15: #call hunter bgcolor #3
+		result = askcolor(color=call3bg, title = "Change Call Hunter Background color")	
+		colbox7.config(state=DISABLED,disabledbackground=result[1])	
+		ob3.config(bg=result[1])												
+		call3bg=result[1]
+	if number==16: #call hunter fgcolor #3
+		result = askcolor(color=call3fg, title = "Change Call Hunter text color")	
+		colbox7.config(state=DISABLED,disabledforeground=result[1])	
+		ob3.config(fg=result[1])															
+		call3fg=result[1]	
+	if number==17: #call hunter bgcolor #4
+		result = askcolor(color=call4bg, title = "Change Call Hunter Background color")	
+		colbox8.config(state=DISABLED,disabledbackground=result[1])	
+		ob4.config(bg=result[1])												
+		call4bg=result[1]
+	if number==18: #call hunter fgcolor #4
+		result = askcolor(color=call4fg, title = "Change Call Hunter text color")	
+		colbox8.config(state=DISABLED,disabledforeground=result[1])	
+		ob4.config(fg=result[1])															
+		call4fg=result[1]	
+	if number==19: #call hunter bgcolor #5
+		result = askcolor(color=call5bg, title = "Change Call Hunter Background color")	
+		colbox9.config(state=DISABLED,disabledbackground=result[1])	
+		ob5.config(bg=result[1])												
+		call5bg=result[1]
+	if number==20: #call hunter fgcolor #5
+		result = askcolor(color=call5fg, title = "Change Call Hunter text color")	
+		colbox9.config(state=DISABLED,disabledforeground=result[1])	
+		ob5.config(fg=result[1])															
+		call5fg=result[1]	
+	if number==21: #call hunter bgcolor #6
+		result = askcolor(color=call6bg, title = "Change Call Hunter Background color")	
+		colbox10.config(state=DISABLED,disabledbackground=result[1])	
+		ob6.config(bg=result[1])												
+		call6bg=result[1]
+	if number==22: #call hunter fgcolor #6
+		result = askcolor(color=call6fg, title = "Change Call Hunter text color")	
+		colbox10.config(state=DISABLED,disabledforeground=result[1])	
+		ob6.config(fg=result[1])															
+		call6fg=result[1]	
+	if number==23: #call hunter bgcolor #7
+		result = askcolor(color=call7bg, title = "Change Call Hunter Background color")	
+		colbox11.config(state=DISABLED,disabledbackground=result[1])	
+		ob7.config(bg=result[1])												
+		call7bg=result[1]
+	if number==24: #call hunter fgcolor #7
+		result = askcolor(color=call7fg, title = "Change Call Hunter text color")	
+		colbox11.config(state=DISABLED,disabledforeground=result[1])	
+		ob7.config(fg=result[1])															
+		call7fg=result[1]	
+	if number==25: #call hunter bgcolor #8
+		result = askcolor(color=call8bg, title = "Change Call Hunter Background color")	
+		colbox12.config(state=DISABLED,disabledbackground=result[1])	
+		ob8.config(bg=result[1])												
+		call8bg=result[1]
+	if number==26: #call hunter fgcolor #8
+		result = askcolor(color=call8fg, title = "Change Call Hunter text color")	
+		colbox12.config(state=DISABLED,disabledforeground=result[1])	
+		ob8.config(fg=result[1])															
+		call8fg=result[1]	
+	if number==27: #call hunter bgcolor #9
+		result = askcolor(color=call9bg, title = "Change Call Hunter Background color")	
+		colbox13.config(state=DISABLED,disabledbackground=result[1])	
+		ob9.config(bg=result[1])												
+		call9bg=result[1]
+	if number==28: #call hunter fgcolor #9
+		result = askcolor(color=call9fg, title = "Change Call Hunter text color")	
+		colbox13.config(state=DISABLED,disabledforeground=result[1])	
+		ob9.config(fg=result[1])															
+		call9fg=result[1]	
+	if number==29: #call hunter bgcolor #10
+		result = askcolor(color=call10bg, title = "Change Call Hunter Background color")	
+		colbox14.config(state=DISABLED,disabledbackground=result[1])	
+		ob10.config(bg=result[1])												
+		call10bg=result[1]
+	if number==30: #call hunter fgcolor #10
+		result = askcolor(color=call10fg, title = "Change Call Hunter text color")	
+		colbox14.config(state=DISABLED,disabledforeground=result[1])	
+		ob10.config(fg=result[1])															
+		call10fg=result[1]	
+	enablebuttons()
+pr_cluster=Label(prefwin,text="Cluster list color",bg='#C9C9C9')
+pr_cluster.grid(row=0,column=0,sticky=W,padx=5)				
+color1=Button(prefwin,text='Background', command=lambda:getColor(1))
+color1.grid(row=1,column=0,sticky=W,padx=55)
+color2=Button(prefwin,text='Text', command=lambda:getColor(2))
+color2.grid(row=1,column=0,sticky=W,padx=5)
+colbox1=Entry(prefwin,width=4)
+colbox1.grid(row=1,column=0,sticky=W,padx=160)
+colbox1.insert(0,"Text")
+colbox1.config(state=DISABLED,disabledbackground=clusterbg,disabledforeground=clusterfg)
+
+pr_console=Label(prefwin,text="Console color",bg='#C9C9C9')
+pr_console.grid(row=2,column=0,sticky=W,padx=5)				
+color3=Button(prefwin,text='Background', command=lambda:getColor(3))
+color3.grid(row=3,column=0,sticky=W,padx=55)
+color4=Button(prefwin,text='Text', command=lambda:getColor(4))
+color4.grid(row=3,column=0,sticky=W,padx=5)
+colbox2=Entry(prefwin,width=4,bg="white")
+colbox2.grid(row=3,column=0,sticky=W,padx=160)
+colbox2.insert(0,"Text")
+colbox2.config(state=DISABLED,disabledbackground=consolebg,disabledforeground=consolefg)
+
+pr_spot=Label(prefwin,text="Spot section color",bg='#C9C9C9')
+pr_spot.grid(row=4,column=0,sticky=W,padx=5)				
+color5=Button(prefwin,text='Background', command=lambda:getColor(5))
+color5.grid(row=5,column=0,sticky=W,padx=55)
+color6=Button(prefwin,text='Text', command=lambda:getColor(6))
+color6.grid(row=5,column=0,sticky=W,padx=5)
+colbox3=Entry(prefwin,width=4)
+colbox3.grid(row=5,column=0,sticky=W,padx=160)
+colbox3.insert(0,"Text")
+colbox3.config(state=DISABLED,disabledbackground=spotbg,disabledforeground="black")
+
+pr_detail=Label(prefwin,text="Detail window color",bg='#C9C9C9')
+pr_detail.grid(row=6,column=0,sticky=W,padx=5)				
+color7=Button(prefwin,text='Background', command=lambda:getColor(7))
+color7.grid(row=7,column=0,sticky=W,padx=55)
+color8=Button(prefwin,text='Text', command=lambda:getColor(8))
+color8.grid(row=7,column=0,sticky=W,padx=5)
+color9=Button(prefwin,fg=detailcall,activeforeground=detailcall,text='Callsign text', command=lambda:getColor(9))
+color9.grid(row=8,column=0,sticky=W,padx=5)
+color10=Button(prefwin,fg=detailcountry,activeforeground=detailcountry,text='Country text', command=lambda:getColor(10))
+color10.grid(row=8,column=0,sticky=W,padx=107)
+colbox4=Entry(prefwin,width=4)
+colbox4.grid(row=7,column=0,sticky=W,padx=160)
+colbox4.insert(0,"Text")
+colbox4.config(state=DISABLED,disabledbackground=detailbg,disabledforeground=detailfg)
+
+pr_callhunter=Label(prefwin,text="Callsign Hunter color",bg='#C9C9C9')
+pr_callhunter.grid(row=9,column=0,sticky=W,padx=5)				
+call_1=Label (prefwin,text="#1",bg='#C9C9C9')
+call_1.grid(row=10,column=0,sticky=W,padx=5)
+color11=Button(prefwin,text='Background', command=lambda:getColor(11))
+color11.grid(row=10,column=0,sticky=W,padx=85)
+color12=Button(prefwin,text='Text', command=lambda:getColor(12))
+color12.grid(row=10,column=0,sticky=W,padx=35)
+colbox5=Entry(prefwin,width=4)
+colbox5.grid(row=10,column=0,sticky=W,padx=190)
+colbox5.insert(0,"Text")
+colbox5.config(state=DISABLED,disabledbackground=call1bg,disabledforeground=call1fg)
+#####
+call_2=Label (prefwin,text="#2",bg='#C9C9C9')
+call_2.grid(row=11,column=0,sticky=W,padx=5)
+color13=Button(prefwin,text='Background', command=lambda:getColor(13))
+color13.grid(row=11,column=0,sticky=W,padx=85)
+color14=Button(prefwin,text='Text', command=lambda:getColor(14))
+color14.grid(row=11,column=0,sticky=W,padx=35)
+colbox6=Entry(prefwin,width=4)
+colbox6.grid(row=11,column=0,sticky=W,padx=190)
+colbox6.insert(0,"Text")
+colbox6.config(state=DISABLED,disabledbackground=call2bg,disabledforeground=call2fg)
+#####
+call_3=Label (prefwin,text="#3",bg='#C9C9C9')
+call_3.grid(row=12,column=0,sticky=W,padx=5)
+color15=Button(prefwin,text='Background', command=lambda:getColor(15))
+color15.grid(row=12,column=0,sticky=W,padx=85)
+color16=Button(prefwin,text='Text', command=lambda:getColor(16))
+color16.grid(row=12,column=0,sticky=W,padx=35)
+colbox7=Entry(prefwin,width=4)
+colbox7.grid(row=12,column=0,sticky=W,padx=190)
+colbox7.insert(0,"Text")
+colbox7.config(state=DISABLED,disabledbackground=call3bg,disabledforeground=call3fg)
+#####
+call_4=Label (prefwin,text="#4",bg='#C9C9C9')
+call_4.grid(row=13,column=0,sticky=W,padx=5)
+color17=Button(prefwin,text='Background', command=lambda:getColor(17))
+color17.grid(row=13,column=0,sticky=W,padx=85)
+color18=Button(prefwin,text='Text', command=lambda:getColor(18))
+color18.grid(row=13,column=0,sticky=W,padx=35)
+colbox8=Entry(prefwin,width=4)
+colbox8.grid(row=13,column=0,sticky=W,padx=190)
+colbox8.insert(0,"Text")
+colbox8.config(state=DISABLED,disabledbackground=call4bg,disabledforeground=call4fg)
+#####
+call_5=Label (prefwin,text="#5",bg='#C9C9C9')
+call_5.grid(row=14,column=0,sticky=W,padx=5)
+color19=Button(prefwin,text='Background', command=lambda:getColor(19))
+color19.grid(row=14,column=0,sticky=W,padx=85)
+color20=Button(prefwin,text='Text', command=lambda:getColor(20))
+color20.grid(row=14,column=0,sticky=W,padx=35)
+colbox9=Entry(prefwin,width=4)
+colbox9.grid(row=14,column=0,sticky=W,padx=190)
+colbox9.insert(0,"Text")
+colbox9.config(state=DISABLED,disabledbackground=call5bg,disabledforeground=call5fg)
+#####
+call_6=Label (prefwin,text="#6",bg='#C9C9C9')
+call_6.grid(row=15,column=0,sticky=W,padx=5)
+color21=Button(prefwin,text='Background', command=lambda:getColor(21))
+color21.grid(row=15,column=0,sticky=W,padx=85)
+color22=Button(prefwin,text='Text', command=lambda:getColor(22))
+color22.grid(row=15,column=0,sticky=W,padx=35)
+colbox10=Entry(prefwin,width=4)
+colbox10.grid(row=15,column=0,sticky=W,padx=190)
+colbox10.insert(0,"Text")
+colbox10.config(state=DISABLED,disabledbackground=call6bg,disabledforeground=call6fg)
+#####
+call_7=Label (prefwin,text="#7",bg='#C9C9C9')
+call_7.grid(row=16,column=0,sticky=W,padx=5)
+color23=Button(prefwin,text='Background', command=lambda:getColor(23))
+color23.grid(row=16,column=0,sticky=W,padx=85)
+color24=Button(prefwin,text='Text', command=lambda:getColor(24))
+color24.grid(row=16,column=0,sticky=W,padx=35)
+colbox11=Entry(prefwin,width=4)
+colbox11.grid(row=16,column=0,sticky=W,padx=190)
+colbox11.insert(0,"Text")
+colbox11.config(state=DISABLED,disabledbackground=call7bg,disabledforeground=call7fg)
+#####
+call_8=Label (prefwin,text="#8",bg='#C9C9C9')
+call_8.grid(row=17,column=0,sticky=W,padx=5)
+color25=Button(prefwin,text='Background', command=lambda:getColor(25))
+color25.grid(row=17,column=0,sticky=W,padx=85)
+color26=Button(prefwin,text='Text', command=lambda:getColor(26))
+color26.grid(row=17,column=0,sticky=W,padx=35)
+colbox12=Entry(prefwin,width=4)
+colbox12.grid(row=17,column=0,sticky=W,padx=190)
+colbox12.insert(0,"Text")
+colbox12.config(state=DISABLED,disabledbackground=call8bg,disabledforeground=call8fg)
+#####
+call_9=Label (prefwin,text="#9",bg='#C9C9C9')
+call_9.grid(row=18,column=0,sticky=W,padx=5)
+color27=Button(prefwin,text='Background', command=lambda:getColor(27))
+color27.grid(row=18,column=0,sticky=W,padx=85)
+color28=Button(prefwin,text='Text', command=lambda:getColor(28))
+color28.grid(row=18,column=0,sticky=W,padx=35)
+colbox13=Entry(prefwin,width=4)
+colbox13.grid(row=18,column=0,sticky=W,padx=190)
+colbox13.insert(0,"Text")
+colbox13.config(state=DISABLED,disabledbackground=call9bg,disabledforeground=call9fg)
+#####
+call_10=Label (prefwin,text="#10",bg='#C9C9C9')
+call_10.grid(row=19,column=0,sticky=W,padx=5)
+color29=Button(prefwin,text='Background', command=lambda:getColor(29))
+color29.grid(row=19,column=0,sticky=W,padx=85)
+color30=Button(prefwin,text='Text', command=lambda:getColor(30))
+color30.grid(row=19,column=0,sticky=W,padx=35)
+colbox14=Entry(prefwin,width=4)
+colbox14.grid(row=19,column=0,sticky=W,padx=190)
+colbox14.insert(0,"Text")
+colbox14.config(state=DISABLED,disabledbackground=call10bg,disabledforeground=call10fg)
+#####
+prefok=Button(prefwin,text='Save&Exit', command=preferences_win)
+prefok.grid(row=20,column=0,sticky=W,padx=80)
+###############################################################################################		
+####################################### About window setup ##################################
+
+abut=Tk()
+abut.title("About")
+abut.geometry("480x320")
+abut.configure(bg='#C9C9C9')
+abut.resizable(0,0)
+ab1=Label(abut,text="pyDxCluster",bg="#C9C9C9",font=("Sans",16,"bold"))
+ab1.pack()
+ab1_1=Label(abut,text="python DX Cluster for HAM Users",bg="#C9C9C9",font=("Sans",12))
+ab1_1.pack()
+ab2=Label(abut,text="version "+version,bg="#C9C9C9",font=("Sans",10))
+ab2.pack()
+ab3=Label(abut,text="author: Jakab Szilárd HA1EM",bg="#C9C9C9",font=("Sans",10))
+ab3.pack()
+ab5=Label(abut,text="published in 11.2014",bg="#C9C9C9",font=("Sans",10))
+ab5.pack()
+abscrollbar = Scrollbar(abut,orient=VERTICAL)
+abscrollbar.pack(side=RIGHT, fill=Y)
+ab4=Text(abut,font=("Courier",8),yscrollcommand=abscrollbar.set)
+abscrollbar.config(command=ab4.yview)
+ab4.pack()
+ab4.insert(INSERT,licence)
+ab4.config(state=DISABLED)
+abut.protocol("WM_DELETE_WINDOW", about)
+abut.withdraw()
+
+#############################################################################################
+	
+	
+################################ Menu definitions #################################	
+menubar =Menu(root)
+root.config(menu=menubar)
+
+filemenu = Menu(menubar, tearoff=0)
+filemenu.add_command(label="Save config", command=saveconfig)
+filemenu.add_separator()
+filemenu.add_command(label="Exit", command=teljeskilepes)
+
+settingsmenu=Menu(menubar,tearoff=0)
+settingsmenu.add_command(label="User settings", command=user_win)
+settingsmenu.add_command(label="Color settings", command=preferences_win)
+
+viewmenu=Menu(menubar, tearoff=0)
+viewmenu.add_command(label="Details show/hide",command=details_win)
+viewmenu.add_command(label="Console show/hide",command=console_win)
+viewmenu.add_command(label="Callsign hunter show/hide",command=observer_win)
+
+
+helpmenu = Menu(menubar, tearoff=0)
+helpmenu.add_command(label="Help", command=help,state="disabled")
+helpmenu.add_command(label="About", command=about)
+
+menubar.add_cascade(label="File", menu=filemenu)
+menubar.add_cascade(label="Settings", menu=settingsmenu)
+menubar.add_cascade(label="Window", menu=viewmenu)
+menubar.add_cascade(label="Help", menu=helpmenu)
+####################################################################################
+
+
+def clearspot():
+	spotdx.delete(0,END)
+	spotfreq.delete(0,END)
+	spotcomment.delete(0,END)
+
+	
+def spotting():
+	global tn,connected
+	dx=spotdx.get()
+	freq=spotfreq.get()
+	comment=spotcomment.get()
+	if connected!=0 and dx!='' and freq:
+		if HOST == "cluster.qrzcq.com":
+			send="DX "+str(freq)+" "+str(dx)+" "+str(comment)+"\n"
+		else:
+			send="DX "+str(dx)+" "+str(freq)+" "+str(comment)+"\n"		
+		tn.write(send)
+		clearspot()
+
+def getfldigi():
+	if connected==1:
+		filename='fldigi-shell -c log.get_frequency '
+		p = subprocess.Popen(filename, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+		out, err = p.communicate()
+		if out[0:5]=="Error":
+			lconsole.insert(END,"FlDigi not connected!")
+			lconsole.yview(END)
+		else:
+			spotfreq.delete(0,END)
+			spotfreq.insert(0,str(out[0:len(out)-1]))
+			filename='fldigi-shell -c log.get_call '
+			p = subprocess.Popen(filename, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+			out, err = p.communicate()
+			spotdx.delete(0,END)
+			spotdx.insert(0,(str(out[0:len(out)-1])))
+
+
+def callback():
+	global adat,call,freq,dx,utc,comment
+	if kiirtadat!=0:
+		if ldx.curselection():
+			index = ldx.curselection()[0]
+			seltext = ldx.get(index)
+			freq=''
+			call=''
+			comment=''
+			utc=''
+			dx=''
+			############# a frekvencia lekerdezese ############
+			for letter in seltext[16:24]:
+				if (letter!=' '): freq=freq+letter
+			############# a spottolt hivojel lekerdezese ######
+			for letter in seltext[57:67]:
+				if (letter!=' '): dx=dx+letter
+			message=connect_message
+			spotdx.delete(0,END)
+			spotdx.insert(0,dx)
+			spotfreq.delete(0,END)
+			spotfreq.insert(0,freq)
+			spotcomment.delete(0,END)
+			spotcomment.insert(0,message)	
+			filename='fldigi-shell -d -c "rig.set_frequency '+str(1000*float(freq))+'"'
+			p = subprocess.Popen(filename, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+			filename='fldigi-shell -d -c "log.set_call '+dx+'"'
+			p = subprocess.Popen(filename, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)	
+
+
+
+def detail_viewer(): 
+	global detailcall,detailcountry
+
+	global kiirtadat
+	if kiirtadat!=0:
+
+		index = ldx.curselection()[0]
+		seltext = ldx.get(index)
+		gridloc=""
+		distance=""
+		heading=""
+		letter=''
+		xcall=""
+		alszik=1
+		call=""
+		dx=""
+		############ a spot hivojel lekerdezese ##########
+		for letter in seltext[5:17]:
+			if (letter!=':' and letter!=' '): call=call+letter
+
+		############# a spottolt hivojel lekerdezese ######
+		for letter in seltext[57:67]:
+			if (letter!=' '): dx=dx+letter
+		############### Grid loc lekerdezese ##############
+
+		if len(seltext)>77:
+			for letter in seltext[68:72]:
+				gridloc=gridloc+letter		
+
+		if len(gridloc)>0:
+			dist=locatordistance(usergridloc,gridloc)
+			distance=str(("{0:8.2f}").format(dist))+"km"
+			heading=calculate_heading(usergridloc,gridloc)
+			heading=("{0:4.1f}").format(float(heading))+"°"
+		else: 
+			distance=""
+			heading=""	
+
+
+		dxlabel.delete(0,END)
+		dxlabel1.delete(0,END)
+		dxlabel.insert(0,call)
+		dxlabel.itemconfig(0,foreground=detailcall)
+		dxlabel1.insert(0,dx)
+		dxlabel1.itemconfig(0,foreground=detailcall)
+
+		if call!="--Beacon--":
+
+			called= callsign(call)
+
+			if called :
+				if called['name']!="": dxlabel.insert(END,called['name'])
+				if called['fname']!="":dxlabel.insert(END,called['fname'])
+				if called['country']!="":
+					dxlabel.insert(END,called['country'].upper())	
+					dxlabel.itemconfig(END,foreground=detailcountry)					
+				if called['addr2']!="":dxlabel.insert(END,called['addr2'])
+		xcall=""
+		letter=""
+		for letter in dx:
+			if letter=='/' or letter==" ": break
+			xcall=xcall+letter
+		dx=xcall
+		called= callsign(dx)
+
+		if called :
+			if called['name']!="":dxlabel1.insert(END,called['name'])
+			if called['fname']!="":dxlabel1.insert(END,called['fname'])
+			if called['country']!="":
+				dxlabel1.insert(END,called['country'].upper())	
+				dxlabel1.itemconfig(END,foreground=detailcountry)
+			if called['addr2']!="":dxlabel1.insert(END,called['addr2'])
+			
+		if len(gridloc)!=0:
+			dxlabel1.insert(END,"Grid locator: "+gridloc)
+			dxlabel1.insert(END,"Distance from you:"+distance)
+			dxlabel1.insert(END,"Heading from you :"+heading)
+		if called:
+			if 'country' in called:
+				alszik=0
+				return called['country']
+						
+		alszik=0
+spot=Button(group_rspot,text="Send spot",font=("Sans",8),command=spotting)
+spot.grid(row=4, column=0, sticky=W,padx=5)
+getfl=Button(group_rspot,text="Get FlDigi",font=("Sans",8),command=getfldigi)
+getfl.grid(row=4,column=0,sticky=W,padx=531)
+getcl=Button(group_rspot,text="Clear",font=("Sans",8),command=clearspot)
+getcl.grid(row=4,column=0,sticky=W,padx=720)
+getcl=Button(group_rspot,text="Get from list",font=("Sans",8),command=callback)
+getcl.grid(row=4,column=0,sticky=W,padx=620)
+ldx.bind('<ButtonRelease-1>', lambda event:detail_viewer())
+
+
+def feldolgoz (response):
+	global call,callcountry,dx,dxcountry,freq,comment,utc,gridloc,distance,heading,adat,connected,connectstatus,HOST,PORT,user,password,kiiras
+	global ch2200,ch660,ch160,ch80,ch40,ch30,ch20,ch17,ch15,ch12,ch10,ch6,ch4,ch2,ch70
+	global md_cw,md_rtty,md_psk31,md_psk63,md_psk128,md_jt65,md_jt9,md_sim31,md_opera,md_ssb
+	global dxlabel,qrzuser,qrzpass
+	global obs1,obs2,obs3,obs4,obs5,obs6,obs7,obs8,obs9,obs10
+	global alszik,kiirtadat
+	global v,usercallsign,usergridloc,qrzcquser,qrzcqpass,qthlocuser,qthlocpass,connect_message,olddetailselection,qrzconnected
+	global reversebeacon,rbhost,rbport,rbkapcs,rbview_k,rbview,clusterview,clusterview_k
+	global obc3,obc4, pin, pskrep, pskrepconnected,telnet_input
+	kiiras=0
+	mod_kiiras=0;
+	adat = response[0:len(response)-2]
+	if (len(adat)>=75 and len(adat)<=82) and(adat[0:1]=="D"): 
+		call =''
+		freq=''
+		dx=''
+		comment=''
+		utc=''
+		ido=''
+		gridloc=''
+		distance=""
+		heading=""
+		dist=0
+		country=''
+		freqx=''
+		callx=''
+		dxx=''
+		mode=""
+		#print adat
+		############# a frekvencia lekerdezese ############
+		for letter in adat[15:24]:
+			if (letter!=' '): freq=freq+letter	
+		freqx=freq
+		############# comment lekerdezese #################
+		for letter in adat[39:70]:
+			comment=comment+letter
+		if "CW" in comment.upper(): mode="CW"
+		else:
+			if "RTTY" in comment.upper(): mode="RTTY"
+			else:
+				if "PSK31" in comment.upper(): mode="PSK31"
+				else:
+					if "PSK63" in comment.upper(): mode="PSK63"
+					else:
+						if "PSK125" in comment.upper(): mode="PSK125"
+						else:
+							if "JT9" in comment.upper(): mode="JT9"
+							else:
+								if "JT65" in comment.upper(): mode="JT65"
+								else:
+									if "SIM31" in comment.upper(): mode="SIM31"																					
+									else:
+										if "OPERA" in comment.upper(): mode="OPERA"			
+										else:
+											if "SSB" in comment.upper(): mode="SSB"			
+											else:												
+												mode="SSB"	
+		if 	int(float(freqx))==144489 or int(float(freqx))==70091 or int(float(freqx))==50276 or int(float(freqx))==28076 or int(float(freqx))==24917 or int(float(freqx))==21076 or int(float(freqx))==18102 or int(float(freqx))==14076 or int(float(freqx))==10138 or int(float(freqx))==7076 or int(float(freqx))==5357 or int(float(freqx))==3576 or int(float(freqx))==1838 or int(float(freqx))==474 or int(float(freqx))==136 : mode="JT65"
+		
+		if mode=="CW" and md_cw.get(): mod_kiiras=1
+		if mode=="RTTY" and md_rtty.get(): mod_kiiras=1
+		if mode=="PSK31" and md_psk31.get(): mod_kiiras=1
+		if mode=="PSK63" and md_psk63.get(): mod_kiiras=1
+		if mode=="PSK125" and md_psk125.get(): mod_kiiras=1
+		if mode=="JT9" and md_jt9.get(): mod_kiiras=1
+		if mode=="JT65" and md_jt65.get(): mod_kiiras=1
+		if mode=="SIM31" and md_sim31.get(): mod_kiiras=1
+		if mode=="OPERA" and md_opera.get(): mod_kiiras=1
+		if mode=="SSB" and md_ssb.get(): mod_kiiras=1
+																			
+
+							
+		if 	int(float(freqx))>=135 and int(float(freqx))<=137 and ch2200.get(): kiiras=1
+		if 	int(float(freqx))>=1810 and int(float(freqx))<=2000 and ch160.get(): kiiras=1
+		if 	int(float(freqx))>=3500 and int(float(freqx))<=3800 and ch80.get(): kiiras=1
+		if 	int(float(freqx))>=7000 and int(float(freqx))<=7200 and ch40.get(): kiiras=1
+		if 	int(float(freqx))>=10100 and int(float(freqx))<=10150 and ch30.get(): kiiras=1
+		if 	int(float(freqx))>=14000 and int(float(freqx))<=15000 and ch20.get(): kiiras=1
+		if 	int(float(freqx))>=18068 and int(float(freqx))<=18168 and ch17.get(): kiiras=1
+		if 	int(float(freqx))>=21000 and int(float(freqx))<=21450 and ch15.get(): kiiras=1
+		if 	int(float(freqx))>=24890 and int(float(freqx))<=24990 and ch12.get(): kiiras=1
+		if 	int(float(freqx))>=28000 and int(float(freqx))<=30000 and ch10.get(): kiiras=1
+		if 	int(float(freqx))>=50000 and int(float(freqx))<=54000 and ch6.get(): kiiras=1
+		if 	int(float(freqx))>=70000 and int(float(freqx))<=70500 and ch4.get(): kiiras=1
+		if 	int(float(freqx))>=144000 and int(float(freqx))<=146000 and ch2.get(): kiiras=1
+		if 	int(float(freqx))>=432000 and int(float(freqx))<=438000 and ch70.get: kiiras=1	
+
+
+						
+		if kiiras==1 and mod_kiiras==1:	
+			
+			############ a spot hivojel lekerdezese ##########
+			for letter in adat[5:17]:
+				if (letter!=':' and letter!=' '): call=call+letter
+				callx=call
+			############# a spottolt hivojel lekerdezese ######
+			for letter in adat[25:39]:
+				if (letter!=' '): dx=dx+letter
+				dxx=dx								
+
+			############## UTC lekerdezese ####################
+			for letter in adat[70:74]:
+				if (letter!='Z'): utc=utc+letter	
+			############### Grid loc lekerdezese ##############
+			if len(adat)>77:
+				for letter in adat[76:80]:
+					gridloc=gridloc+letter
+
+				
+			call = ("{0:10s}").format(call)
+			freq = ("{0:8.1f}").format(float(freq))
+			dx = ("{0:10s}").format(dx)
+			comment=("{0:30s}").format(comment)
+#						utc=("{0:2.2s}").format(utc)+":"+("{0:2.4s}").format(utc)
+			utc1=utc[0:2]+":"+utc[2:4]
+#						print utc;
+			if len(gridloc)>0:
+				dist=locatordistance(usergridloc,gridloc)
+				distance=str(("{0:8.2f}").format(dist))+"km"
+				heading=calculate_heading(usergridloc,gridloc)
+				heading=("{0:4.1f}").format(float(heading))+"°"
+			else: 
+				distance=""
+				heading=""						
+
+			ldx.insert(0,utc+" "+call+" "+freq+" "+comment+" "+dx+" "+gridloc+" "+distance+" "+heading)
+			if telnet_input=="c":
+				ldx.itemconfig(0,foreground="blue")				
+			if telnet_input=="b":
+				ldx.itemconfig(0,foreground="green")				
+			if telnet_input=="p":
+				ldx.itemconfig(0,foreground="purple")	
+			
+				
+			kiirtadat=1
+			if "CW" in comment.upper(): mode="CW"
+			else:
+				if "RTTY" in comment.upper(): mode="RTTY"
+				else:
+					if "PSK31" in comment.upper(): mode="PSK31"
+					else:
+						if "PSK63" in comment.upper(): mode="PSK63"
+						else:
+							if "PSK128" in comment.upper(): mode="PSK128"
+							else:
+								if "JT9" in comment.upper(): mode="JT9"
+								else:
+									if "JT65" in comment.upper(): mode="JT65"
+									else:
+										if "SIM31" in comment.upper(): mode="SIM31"																					
+										else:
+											if "OPERA" in comment.upper(): mode="OPERA"			
+											else:
+												if "SSB" in comment.upper(): mode="SSB"			
+												else:												
+													mode="SSB"
+				
+			if callx==user.upper() or dxx==user.upper():
+				ldx.itemconfig(0,background="lightgreen")	
+
+#			if dxx==obs1.upper():
+			if obs1!="" and obs1.upper() in dxx:
+				if obc3==1:pygame.mixer.music.play()
+				if obc4==1:observer.lift()
+				ldx.itemconfig(0,background=call1bg, foreground=call1fg)
+				obf1.config(state=NORMAL)
+				obf1.delete(0,END)							
+				obf1.insert(0,freq)		
+				obf1.config(state=DISABLED)	
+				obt1.config(state=NORMAL)
+				obt1.delete(0,END)							
+				obt1.insert(0,utc1)		
+				obt1.config(state=DISABLED)	
+				obcl1.config(state=NORMAL)
+				obcl1.delete(0,END)							
+				obcl1.insert(0,dxx)		
+				obcl1.config(state=DISABLED)		
+				obm1.config(state=NORMAL)
+				obm1.delete(0,END)							
+				obm1.insert(0,mode)		
+				obm1.config(state=DISABLED)																	
+			if obs2!="" and obs2.upper() in dxx:
+				if obc3==1:pygame.mixer.music.play()							
+				if obc4==1:observer.lift()
+				ldx.itemconfig(0,background=call2bg, foreground=call2fg)
+				obf2.config(state=NORMAL)	
+				obf2.delete(0,END)							
+				obf2.insert(0,freq)			
+				obf2.config(state=DISABLED)	
+				obt2.config(state=NORMAL)
+				obt2.delete(0,END)							
+				obt2.insert(0,utc1)		
+				obt2.config(state=DISABLED)		
+				obcl2.config(state=NORMAL)
+				obcl2.delete(0,END)							
+				obcl2.insert(0,dxx)		
+				obcl2.config(state=DISABLED)		
+				obm2.config(state=NORMAL)
+				obm2.delete(0,END)							
+				obm2.insert(0,mode)		
+				obm2.config(state=DISABLED)															
+			if obs3!="" and obs3.upper() in dxx:
+				if obc3==1:pygame.mixer.music.play()
+				if obc4==1:observer.lift()
+				ldx.itemconfig(0,background=call3bg, foreground=call3fg)	
+				obf3.config(state=NORMAL)
+				obf3.delete(0,END)							
+				obf3.insert(0,freq)			
+				obf3.config(state=DISABLED)		
+				obt3.config(state=NORMAL)
+				obt3.delete(0,END)							
+				obt3.insert(0,utc1)		
+				obt3.config(state=DISABLED)	
+				obcl3.config(state=NORMAL)
+				obcl3.delete(0,END)							
+				obcl3.insert(0,dxx)		
+				obcl3.config(state=DISABLED)
+				obm3.config(state=NORMAL)
+				obm3.delete(0,END)							
+				obm3.insert(0,mode)		
+				obm3.config(state=DISABLED)																			
+			if obs4!="" and obs4.upper() in dxx:
+				if obc3==1:pygame.mixer.music.play()							
+				if obc4==1:observer.lift()
+				ldx.itemconfig(0,background=call4bg, foreground=call4fg)													
+				obf4.config(state=NORMAL)
+				obf4.delete(0,END)							
+				obf4.insert(0,freq)			
+				obf4.config(state=DISABLED)		
+				obt4.config(state=NORMAL)
+				obt4.delete(0,END)							
+				obt4.insert(0,utc1)		
+				obt4.config(state=DISABLED)	
+				obcl4.config(state=NORMAL)
+				obcl4.delete(0,END)							
+				obcl4.insert(0,dxx)		
+				obcl4.config(state=DISABLED)
+				obm4.config(state=NORMAL)
+				obm4.delete(0,END)							
+				obm4.insert(0,mode)		
+				obm4.config(state=DISABLED)																			
+			if obs5!="" and obs5.upper() in dxx:
+				if obc3==1:pygame.mixer.music.play()							
+				if obc4==1:observer.lift()
+				ldx.itemconfig(0,background=call5bg, foreground=call5fg)							
+				obf5.config(state=NORMAL)
+				obf5.delete(0,END)							
+				obf5.insert(0,freq)			
+				obf5.config(state=DISABLED)		
+				obt5.config(state=NORMAL)
+				obt5.delete(0,END)							
+				obt5.insert(0,utc1)		
+				obt5.config(state=DISABLED)	
+				obcl5.config(state=NORMAL)
+				obcl5.delete(0,END)							
+				obcl5.insert(0,dxx)		
+				obcl5.config(state=DISABLED)
+				obm5.config(state=NORMAL)
+				obm5.delete(0,END)							
+				obm5.insert(0,mode)		
+				obm5.config(state=DISABLED)										
+			if obs6!="" and obs6.upper() in dxx:
+				if obc3==1:pygame.mixer.music.play()							
+				if obc4==1:observer.lift()
+				ldx.itemconfig(0,background=call6bg, foreground=call6fg)	
+				obf6.config(state=NORMAL)
+				obf6.delete(0,END)							
+				obf6.insert(0,freq)			
+				obf6.config(state=DISABLED)		
+				obt6.config(state=NORMAL)
+				obt6.delete(0,END)							
+				obt6.insert(0,utc1)		
+				obt6.config(state=DISABLED)					
+				obcl6.config(state=NORMAL)
+				obcl6.delete(0,END)							
+				obcl6.insert(0,dxx)		
+				obcl6.config(state=DISABLED)
+				obm6.config(state=NORMAL)
+				obm6.delete(0,END)							
+				obm6.insert(0,mode)		
+				obm6.config(state=DISABLED)														
+			if obs7!="" and obs7.upper() in dxx:
+				if obc3==1:pygame.mixer.music.play()							
+				if obc4==1:observer.lift()
+				ldx.itemconfig(0,background=call7bg, foreground=call7fg)	
+				obf7.config(state=NORMAL)
+				obf7.delete(0,END)							
+				obf7.insert(0,freq)			
+				obf7.config(state=DISABLED)			
+				obt7.config(state=NORMAL)
+				obt7.delete(0,END)							
+				obt7.insert(0,utc1)		
+				obt7.config(state=DISABLED)	
+				obcl7.config(state=NORMAL)
+				obcl7.delete(0,END)							
+				obcl7.insert(0,dxx)		
+				obcl7.config(state=DISABLED)
+				obm7.config(state=NORMAL)
+				obm7.delete(0,END)							
+				obm7.insert(0,mode)		
+				obm7.config(state=DISABLED)																		
+			if obs8!="" and obs8.upper() in dxx:
+				if obc3==1:pygame.mixer.music.play()							
+				if obc4==1:observer.lift()
+				ldx.itemconfig(0,background=call8bg, foreground=call8fg)	
+				obf8.config(state=NORMAL)
+				obf8.delete(0,END)							
+				obf8.insert(0,freq)			
+				obf8.config(state=DISABLED)			
+				obt8.config(state=NORMAL)
+				obt8.delete(0,END)							
+				obt8.insert(0,utc1)		
+				obt8.config(state=DISABLED)	
+				obcl8.config(state=NORMAL)
+				obcl8.delete(0,END)							
+				obcl8.insert(0,dxx)		
+				obcl8.config(state=DISABLED)
+				obm8.config(state=NORMAL)
+				obm8.delete(0,END)							
+				obm8.insert(0,mode)		
+				obm8.config(state=DISABLED)																		
+			if obs9!="" and obs9.upper() in dxx:
+				if obc3==1:pygame.mixer.music.play()							
+				if obc4==1:observer.lift()
+				ldx.itemconfig(0,background=call9bg, foreground=call9fg)	
+				obf9.config(state=NORMAL)
+				obf9.delete(0,END)							
+				obf9.insert(0,freq)			
+				obf9.config(state=DISABLED)		
+				obt9.config(state=NORMAL)
+				obt9.delete(0,END)							
+				obt9.insert(0,utc1)		
+				obt9.config(state=DISABLED)	
+				obcl9.config(state=NORMAL)
+				obcl9.delete(0,END)							
+				obcl9.insert(0,dxx)		
+				obcl9.config(state=DISABLED)
+				obm9.config(state=NORMAL)
+				obm9.delete(0,END)							
+				obm9.insert(0,mode)		
+				obm9.config(state=DISABLED)					
+																		
+			if obs10!="" and obs10.upper() in dxx:
+				if obc3==1:pygame.mixer.music.play()							
+				if obc4==1:observer.lift()
+				ldx.itemconfig(0,background=call10bg, foreground=call10fg)		
+				obf10.config(state=NORMAL)
+				obf10.delete(0,END)							
+				obf10.insert(0,freq)		
+				obf10.config(state=DISABLED)	
+				obt10.config(state=NORMAL)
+				obt10.delete(0,END)							
+				obt10.insert(0,utc1)		
+				obt10.config(state=DISABLED)
+				obcl10.config(state=NORMAL)
+				obcl10.delete(0,END)							
+				obcl10.insert(0,dxx)		
+				obcl10.config(state=DISABLED)																														
+				obm10.config(state=NORMAL)
+				obm10.delete(0,END)							
+				obm10.insert(0,mode)		
+				obm10.config(state=DISABLED)					
+	else:
+
+		lconsole.insert(END,adat)
+		lconsole.yview(END)	
+		if adat[0:len(user)]==user.upper():		
+			lconsole.itemconfig(END,foreground='red')		
+
+def task():
+	global call,callcountry,dx,dxcountry,freq,comment,utc,gridloc,distance,heading,adat,connected,connectstatus,HOST,PORT,user,password,kiiras
+	global ch2200,ch660,ch160,ch80,ch40,ch30,ch20,ch17,ch15,ch12,ch10,ch6,ch4,ch2,ch70
+	global dxlabel,qrzuser,qrzpass
+	global obs1,obs2,obs3,obs4,obs5,obs6,obs7,obs8,obs9,obs10
+	global alszik,kiirtadat
+	global v,usercallsign,usergridloc,qrzcquser,qrzcqpass,qthlocuser,qthlocpass,connect_message,olddetailselection,qrzconnected
+	global reversebeacon,rbhost,rbport,rbkapcs,rbview_k,rbview,clusterview,clusterview_k,pskrepview
+	global obc3,obc4, pin, pskrep, pskrepconnected, telnet_input, reverseconnected
+	
+	response=""	
+	response1=""
+	response2=""
+	telnetflush=""
+	telnet_input=""
+	adat=''
+	if v.get()!=olddetailselection:
+		qrzconnected=0
+		olddetailselection=v.get()
+
+	if alszik==0:
+		if connected==1:
+			if connectstatus==0:
+				connectbtn.config(text="Disconnect")
+				connecthost.config(state='disabled')
+				connectport.config(state='disabled')
+				connectuser.config(state='disabled')
+				connectpassword.config(state='disabled')
+				qrzuserentry.config(state='disabled')
+				qrzpassentry.config(state='disabled')
+				b.config(state='disabled')
+				b1.config(state='disabled')
+				b2.config(state='disabled')
+				b3.config(state='disabled')		
+				userl1_1.config(state='disabled')
+				userl2_1.config(state='disabled')
+				qrzcquserentry.config(state='disabled')
+				qrzcqpassentry.config(state='disabled')
+				hamcalluserentry.config(state='disabled')
+				hamcallpassentry.config(state='disabled')
+				connectmessage.configure(state='disabled')
+				rbkapcsb.configure(state='disabled')
+				rbhoste.configure(state='disabled')
+				rbporte.configure(state='disabled')
+														
+				connectstatus=1
+
+			if clusterview==1:
+				response = tn.read_until("\n",0.2)
+
+			else:
+				telnetflush=tn.read_until("\n",0.1)
+				response=''
+			
+			if reverseconnected==1:
+				if rbview==1:
+
+					response1 = rb.read_until("\n",0.2)
+
+				else:
+					telnetflush=rb.read_until("\n",0.1)
+					response1=''
+			if reverseconnected==0:
+
+					response1=''
+######################### PSK Info  ##########################
+			if pskrepconnected==1:
+				if pskrepview==1:
+					response2 = pin.read_until("\n",0.2)
+					
+				else:
+					telnetflush=pin.read_until("\n",0.1)
+					response2=''
+			if pskrepconnected==0:
+					response2=''
+
+##############################################################
+
+
+			if response!='' or response1!='' or response2!='':
+				if response!='':
+						response=response
+						telnet_input="c"
+						feldolgoz(response)				
+				if response1!='':
+						response=response1
+						telnet_input="b"
+						feldolgoz(response)
+				if response2!='':
+						response=response2
+						telnet_input="p"					
+						feldolgoz(response)
+						
+
+			
+				
+		else:
+			if connectstatus==1:
+				connectbtn.config(text="Connect")	
+				connecthost.config(state='normal')
+				connectport.config(state='normal')
+				connectuser.config(state='normal')
+				connectpassword.config(state='normal')
+				qrzuserentry.config(state='normal')
+				qrzpassentry.config(state='normal')
+				b.config(state='normal')
+				b1.config(state='normal')				
+				b2.config(state='normal')				
+				b3.config(state='normal')		
+				userl1_1.config(state='normal')
+				userl2_1.config(state='normal')
+				qrzcquserentry.config(state='normal')
+				qrzcqpassentry.config(state='normal')
+				hamcalluserentry.config(state='normal')
+				hamcallpassentry.config(state='normal')
+				connectmessage.configure(state='normal')		
+				rbkapcsb.configure(state='normal')
+				rbhoste.configure(state='normal')
+				rbporte.configure(state='normal')								
+
+				connectstatus=0	
+	HOST=connecthost.get()
+	PORT=connectport.get()
+	rbhost=rbhoste.get()
+	rbport=rbporte.get()
+	user=connectuser.get()
+	password=connectpassword.get()
+	qrzuser=qrzuserentry.get()
+	qrzpass=qrzpassentry.get()
+	usercallsign=userl1_1.get()
+	usergridloc=userl2_1.get()
+	qrzcquser=qrzcquserentry.get()
+	qrzcqpass=qrzcqpassentry.get()
+	qthlocuser=hamcalluserentry.get()
+	qthlocpass=hamcallpassentry.get()
+	connect_message=connectmessage.get()
+	reversebeacon=rbkapcs.get()
+	rbview=rbview_k.get()
+	clusterview=clusterview_k.get()
+	pskrepview=pskrepview_k.get()
+	obc3=obcimke3_k.get()
+	obc4=obcimke4_k.get()
+	
+	if ob1.get()!=obs1: 
+		obf1.config(state=NORMAL)
+		obf1.delete(0,END)	
+		obf1.config(state=DISABLED)
+		obt1.config(state=NORMAL)
+		obt1.delete(0,END)	
+		obt1.config(state=DISABLED)		
+		obcl1.config(state=NORMAL)
+		obcl1.delete(0,END)	
+		obcl1.config(state=DISABLED)	
+		obm1.config(state=NORMAL)
+		obm1.delete(0,END)	
+		obm1.config(state=DISABLED)						
+	if ob2.get()!=obs2: 
+		obf2.config(state=NORMAL)		
+		obf2.delete(0,END)	
+		obf2.config(state=DISABLED)
+		obt2.config(state=NORMAL)
+		obt2.delete(0,END)	
+		obt2.config(state=DISABLED)		
+		obcl2.config(state=NORMAL)
+		obcl2.delete(0,END)	
+		obcl2.config(state=DISABLED)				
+		obm2.config(state=NORMAL)
+		obm2.delete(0,END)	
+		obm2.config(state=DISABLED)			
+	if ob3.get()!=obs3: 
+		obf3.config(state=NORMAL)		
+		obf3.delete(0,END)	
+		obf3.config(state=DISABLED)
+		obt3.config(state=NORMAL)
+		obt3.delete(0,END)	
+		obt3.config(state=DISABLED)	
+		obcl3.config(state=NORMAL)
+		obcl3.delete(0,END)	
+		obcl3.config(state=DISABLED)
+		obm3.config(state=NORMAL)
+		obm3.delete(0,END)	
+		obm3.config(state=DISABLED)								
+	if ob4.get()!=obs4: 
+		obf4.config(state=NORMAL)		
+		obf4.delete(0,END)	
+		obf4.config(state=DISABLED)
+		obt4.config(state=NORMAL)
+		obt4.delete(0,END)	
+		obt4.config(state=DISABLED)	
+		obcl4.config(state=NORMAL)
+		obcl4.delete(0,END)	
+		obcl4.config(state=DISABLED)
+		obm4.config(state=NORMAL)
+		obm4.delete(0,END)	
+		obm4.config(state=DISABLED)								
+	if ob5.get()!=obs5: 
+		obf5.config(state=NORMAL)		
+		obf5.delete(0,END)	
+		obf5.config(state=DISABLED)		
+		obt5.config(state=NORMAL)
+		obt5.delete(0,END)	
+		obt5.config(state=DISABLED)	
+		obcl5.config(state=NORMAL)
+		obcl5.delete(0,END)	
+		obcl5.config(state=DISABLED)
+		obm5.config(state=NORMAL)
+		obm5.delete(0,END)	
+		obm5.config(state=DISABLED)								
+	if ob6.get()!=obs6: 
+		obf6.config(state=NORMAL)		
+		obf6.delete(0,END)	
+		obf6.config(state=DISABLED)		
+		obt6.config(state=NORMAL)
+		obt6.delete(0,END)	
+		obt6.config(state=DISABLED)	
+		obcl6.config(state=NORMAL)
+		obcl6.delete(0,END)	
+		obcl6.config(state=DISABLED)
+		obm6.config(state=NORMAL)
+		obm6.delete(0,END)	
+		obm6.config(state=DISABLED)								
+	if ob7.get()!=obs7: 
+		obf7.config(state=NORMAL)		
+		obf7.delete(0,END)	
+		obf7.config(state=DISABLED)		
+		obt7.config(state=NORMAL)
+		obt7.delete(0,END)	
+		obt7.config(state=DISABLED)	
+		obcl7.config(state=NORMAL)
+		obcl7.delete(0,END)	
+		obcl7.config(state=DISABLED)
+		obm7.config(state=NORMAL)
+		obm7.delete(0,END)	
+		obm7.config(state=DISABLED)								
+	if ob8.get()!=obs8: 
+		obf8.config(state=NORMAL)		
+		obf8.delete(0,END)	
+		obf8.config(state=DISABLED)		
+		obt8.config(state=NORMAL)
+		obt8.delete(0,END)	
+		obt8.config(state=DISABLED)	
+		obcl8.config(state=NORMAL)
+		obcl8.delete(0,END)	
+		obcl8.config(state=DISABLED)
+		obm8.config(state=NORMAL)
+		obm8.delete(0,END)	
+		obm8.config(state=DISABLED)								
+	if ob9.get()!=obs9: 
+		obf9.config(state=NORMAL)		
+		obf9.delete(0,END)	
+		obf9.config(state=DISABLED)		
+		obt9.config(state=NORMAL)
+		obt9.delete(0,END)	
+		obt9.config(state=DISABLED)				
+		obcl9.config(state=NORMAL)
+		obcl9.delete(0,END)	
+		obcl9.config(state=DISABLED)
+		obm9.config(state=NORMAL)
+		obm9.delete(0,END)	
+		obm9.config(state=DISABLED)					
+	if ob10.get()!=obs10:
+		obf10.config(state=NORMAL)		
+		obf10.delete(0,END)	
+		obf10.config(state=DISABLED)	
+		obt10.config(state=NORMAL)
+		obt10.delete(0,END)	
+		obt10.config(state=DISABLED)
+		obcl10.config(state=NORMAL)
+		obcl10.delete(0,END)	
+		obcl10.config(state=DISABLED)				
+		obm10.config(state=NORMAL)
+		obm10.delete(0,END)	
+		obm10.config(state=DISABLED)			
+	
+	obs1=ob1.get()
+	obs2=ob2.get()
+	obs3=ob3.get()
+	obs4=ob4.get()
+	obs5=ob5.get()
+	obs6=ob6.get()
+	obs7=ob7.get()
+	obs8=ob8.get()
+	obs9=ob9.get()
+	obs10=ob10.get()
+
+	kiiras=0
+	root.after(1,task)  
+
+root.after(1,task)
+root.mainloop()
diff --git a/pydxcluster.cfg b/pydxcluster.cfg
new file mode 100644
index 0000000..eb7c6dd
--- /dev/null
+++ b/pydxcluster.cfg
@@ -0,0 +1 @@
+{'rbport': '7000', 'ch80': '1', 'rbhost': 'telnet.reversebeacon.net', 'viewobserver': 1, 'ch660': '1', 'qthlocpass': '', 'ch40': '1', 'qthlocuser': '', 'obs10': '', 'ch160': '1', 'usercallsign': '', 'port': '', 'usergridloc': '', 'md_jt65': '1', 'qrzpasswd': '', 'ch20': '1', 'md_rtty': '1', 'ch60': '1', 'consolewindowy': 61, 'consolewindowx': 9, 'observerwindowy': 804, 'observerwindowx': 471, 'qrzuser': '', 'detailwindowx': 0, 'detailwindowy': 0, 'mainwindowx': 1110, 'mainwindowy': 589,  [...]
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/pydxcluster.git



More information about the pkg-hamradio-commits mailing list