Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,7 @@ Icon
.Trashes

log*.txt
users*.cfg
users*.cfg

# Object files
*.pyc
Expand Down
2 changes: 0 additions & 2 deletions Flagship 1.0.4.1 - distro/bin/ChatFns.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
from socket import *
import urllib
import re
import win32gui
import socket
import threading
import sys
import os
import winsound
import time
import UDPFunc
from ChatFns import *
Expand Down
14 changes: 10 additions & 4 deletions Flagship 1.0.4.1 - distro/bin/FlagshipMain.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import threading
import sys
import os
import winsound
import time
import UDPFunc
import tkMessageBox
Expand Down Expand Up @@ -52,7 +51,7 @@ def listen():
if not QUIT.isSet():
if (data != ""): #checks if message is not blank
if data[0]!="/": #checks if it is a listener-side command
winsound.PlaySound("*", winsound.SND_ALIAS|winsound.SND_ASYNC)
#winsound.PlaySound("*", winsound.SND_ALIAS|winsound.SND_ASYNC)
if addr[0] in IP_Lookup: #checks if sender IP is in contacts
Name = IP_Lookup[addr[0]]
if Name == "192.168.1.1":
Expand Down Expand Up @@ -334,7 +333,10 @@ def newgchat():
gchat.title(ChatTitle)
gchat.geometry("400x500")
gchat.resizable(width=TRUE, height=TRUE)
gchat.iconbitmap(default='iconfile.ico')
if "nt" == os.name:
gchat.iconbitmap(bitmap = 'iconfile.ico')
else:
gchat.iconbitmap(bitmap = '@iconfile.xbm')

#Create the Button to send message
SendButton = Button(gchat, font=30, text="Send", width="12", height=5,
Expand Down Expand Up @@ -444,7 +446,11 @@ def func(val):
base.title(WindowTitle)
base.geometry("400x40")
base.resizable(width=TRUE, height=TRUE)
base.iconbitmap(default='iconfile.ico')
if "nt" == os.name:
base.iconbitmap(bitmap = 'iconfile.ico')
else:
base.iconbitmap(bitmap = '@iconfile.xbm')


menubar = Menu(base)

Expand Down
2 changes: 0 additions & 2 deletions Flagship 1.0.4.1 - distro/bin/UDPFunc.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
from socket import *
import urllib
import re
import win32gui
import socket
import threading
import sys
import os
import winsound
import time
from ChatFns import *
from UDPSettings import *
Expand Down
6 changes: 6 additions & 0 deletions Flagship 1.0.4.1 - distro/bin/iconfile.xbm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#define iconfile_width 15
#define iconfile_height 15
static unsigned char iconfile_bits[] = {
0x00, 0x00, 0x0c, 0x18, 0x12, 0x24, 0xf1, 0x47, 0x13, 0x66, 0x5a, 0x38,
0x0c, 0x19, 0x24, 0x12, 0x36, 0x32, 0x26, 0x32, 0x06, 0x30, 0x0e, 0x30,
0x0e, 0x3c, 0xf4, 0x17, 0x00, 0x00 };