Private subreddit for cryptocurrency moderators. "We are all in this together"
I'm looking for some help with PyQt5, I'm pretty good with tkinter but have been trying to get into learning a more powerful GUI tool. Please don't shout at me for this obvious question.
I have been creating a tabbed GUI for an automated trader to be used with Binance (Crypto trading). I think i'm struggling with the parent / child relationships of it all. Code is below.
Right down at the bottom you'll see i'm trying to add a simple label to the summary tab i created. The label is called BitcoinPriceLabel. How do i then add that label to the Summary_Tab?
Thanks for the help!
import sys from PyQt5.QtWidgets import * #QApplication, QWidget from PyQt5.QtGui import *
def __init__(self): super().__init__()
def initUI(self): #This section adds all the items in initiation. #PosX, PosY, SizeX, SizeY self.setGeometry(100, 100, 1024, 768)
self.setWindowTitle('Jakes Python Binance Trader') self.setWindowIcon(QIcon('Binance_Logo.png')) self.statusBar().showMessage('Ready to go...') MainLayout=QVBoxLayout(self)
#Settings for tooltips QToolTip.setFont(QFont('SansSerif', 10))
#Button example #ExampleButton = QPushButton('The Button', self) #ExampleButton.setToolTip('This is an example Push Button') #ExampleButton.resize(ExampleButton.sizeHint()) #ExampleButton.move(50,50) self.CreateFileMenu() self.CreateTabs() self.CreateSummaryTab() self.show()
def CreateFileMenu(self): #This function defines all buttons on the menu bar and adds them to #The main window #Define actions to be added into the menu bar exitAct = QAction(QIcon('exit.png'), '&Exit', self) exitAct.setShortcut('Ctrl+Q') exitAct.setStatusTip('Exit application') exitAct.triggered.connect(qApp.quit)
def CreateTabs(self): self.MainWidget=QWidget(self) self.Tablayout = QVBoxLayout(self.MainWidget) Main_Window_Tab_Widget=QTabWidget(self)
#Define a bunch of tabs Summary_View = QWidget() Summary_View_Layout = QVBoxLayout(Summary_View) Main_Window_Tab_Widget.addTab(Summary_View,'Summary View')
Trade_Rules= QWidget() Trade_Rules_Layout = QVBoxLayout(Trade_Rules) Main_Window_Tab_Widget.addTab(Trade_Rules, 'Trade Rules')
Trade_Log= QWidget() Trade_Log_Layout = QVBoxLayout(Trade_Rules) Main_Window_Tab_Widget.addTab(Trade_Log, 'Trade Log')
Profit_Loss= QWidget() Profit_Loss_Layout = QVBoxLayout(Trade_Rules) Main_Window_Tab_Widget.addTab(Profit_Loss, 'Profit/Loss')
Settings_Tab= QWidget() Settings_Tab_Layout = QVBoxLayout(Settings_Tab) Main_Window_Tab_Widget.addTab(Settings_Tab, 'Settings')
#Add tabs to main window self.Tablayout.addWidget(Main_Window_Tab_Widget) self.setCentralWidget(self.MainWidget)
def CreateSummaryTab(self): self.BitcoinPriceLabel = QLabel("Bitcoin / USD") How do I add this to the Summary Tab defined above?
if __name__ == '__main__': app = QApplication(sys.argv) ex = Example() sys.exit(app.exec_())
Due to an influx of new traders from TI4 getting scammed with injection and fake MM scams, we've stickied Hammy's guide on trade scams. If you are a new trader please look over these scams, if you are selling for paypal/WU or any other non-Steam supported method please pay careful attention to the middleman injection and impersonator sections. READ BEFORE DOING REAL MONEY TRADES submitted by
- If you are unsure in any way about the user you are dealing with use an official MM (Never use a friend, anyone asking for you to use a friend is a scammer).
- An official Middleman from the community will have a green box around his profile on SR.
- Before doing any trades with MM or anyone else follow the steps in this example:
- In the example Hammy is Middlemaning a trade between me (the seller) and GDP (the buyer)
- You should be in a multi-user chat when someone is middlemaning your trade.
- From your multi-user chat you can check all parties involved for legitimacy (always do this before trading).
- Start by going from the chat into the buyeMM profile like this: http://i.imgur.com/QtD4qAD.png
- Copy the url from the user (in this example the buyer): http://i.imgur.com/EInGsEk.jpg
- Go to steamrep.com and paste the user url into the search box.
- On the page check for pending reports and use other search functions to look for scam reports: http://i.imgur.com/vUMFk4D.png
- Using the same method check to ensure your middleman is official: http://i.imgur.com/yGgHfCm.png
- If everything checks out it is safe to go forward with the trade. If anyone leaves the multi-person chat be sure to check them again if they come back in.
- Remember to check as many times as you feel necessary, we are very patient when it comes to ensuring the safety of both the buyer and seller.
- A reminder to never trade with anyone marked with a SR scammer tag, such as this piece of human shit: http://i.imgur.com/tSyyZ6M.png
This is a cross-post from /tf2trade
after I requested someone revise our old guide on trade scams and how to avoid them. Many thanks to mostlylurkingmostly
for assembling it. /SGS guide on avoiding scams available here. List as of 22nd of September 2013. 1. Fake middleman scam
Fake middleman scam is similar to the impersonator scam. The scam would involve 3 people - Victim, 'Fake middleman', and the 'accomplice'. The accomplice would approach you, asking to pay the buyout of your item(s). You checked his profile/backpack/SteamRep and everything seems okay. They would suggest a middleman and you would agree to it. Suddenly, the 'fake middleman' joins the chat and shows you his Steamrep/SourceOP/Dota2Traders page and you would think that he's legit. After giving him your items, they would both delete and block you, never to be seen again. Note: Anytime someone asks to use a friend from your friendslist who is not an official MM they are either attempting to scam you or your friend. Always decline their offer and insist on an official MM.
Avoiding them: Do not rush into trades. Make sure that the middleman is legit by clicking their portrait in the group chat window and visiting their Steam page, then cross-referencing it with SteamRep. Common sign/s are - Private profile/backpack. 2. The Impersonation scam
Impersonators will copy a trusted trader's or one of your friend's profile down to the last detail and approach you saying they are interested in buying or borrowing something from you. They will claim to have a lot of REP so that you should go first in the trade. After you have given them the items, he would delete you and your item will never be seen again. Common targets for impersonation are the people from the SourceOP Trusted Seller group. A good way to check is the level of English they use. All of them are fluent in English, so they are unlikely to be incoherent in what they say. Also most of them are more mature traders, and are less likely to try and push you into a deal like an impetuous 5 year old.
P.S. -- Valve would most probably not return your item back to you.
Steam > Settings > Interface > Display steam URL address bar when available. When someone adds you and say that they'll pay your buyout, copy and paste their steam url to www.steamrep.com
After making sure that they have no scammer tags, find a middleman
to help you with the trade. Also, it's really important to search steamrep forums' to be sure that there are no scam reports pending for the person.
Always double check before a transaction. Some of the most heartbreaking scams have been because of impersonating friends' profiles. 3. Taking the items and leave scam ...- thecommieduck
This scam involves someone asking to purchase an item of yours with something that they never intended to pay but they dazzle the person with the ease/value of the transaction. This is also sometimes accompanied by a fake Sourceop link for rep to show they're good-- never trust links the other person gives you. After receiving the item, they'll delete you. Your item would not be given back to you after the trade is done. This also applies to game codes.
Avoiding them: Steam > Settings > Interface > Display steam URL address bar when available. When someone adds you and say that they'll pay your buyout, copy and paste their steam url to www.steamrep.com
After making sure that they have no scammer tags, find a middleman
to help you with the trade. Be sure to check the "Search Steamrep Forums" button. (In red here
). Even if the person is not tagged yet, they may still have pending reports of them as a scammer. 4. The fake link/phishing scam
One of the most common scam nowadays. This is a phishing technique used by many, especially on TF2Outpost. Phishing links are websites that trick you into giving them your account details (Steam username, password, e-mail username, e-mail password). After you gave your account details away, the phisher would change the email account tied to your steam account as well as the password, after moving your items and Steam wallet to one of his accounts.
Avoiding them : Be vigilant whenever you're clicking on a link. Make sure what you're clicking on is spelled correctly. Also, dmn002 wrote a chrome extension to block misspelled websites.
Do check it out! 5. Swap/QuickSwitch Scam
This scam involves the victim thinking they're getting one item but got another instead. Here's what happens: Someone would add you and said that he'll be willing to do a trade. He'll then put up X and you'll put up the items you're paying for it. Without you noticing, he'll quickly switch it to another item of less value. The item might also be renamed to suit X so that you wouldn't notice anything amiss in the chat window of the trade. After trading, he will get away with your items.
Quickswitch scams are quite common among low-grade scammers. It also involves misdirection -- they'll ask you a question in Steam chat so you switch windows, they'll swap the item while you're typing, then ask you to add another item or remove one of them. Then you both approve the trade. QuickSwitch has become more of a "ConmanSwitch" than something done only in rushed trades.
Avoiding them: Always make sure that the items for the trade are the items you agreed on. Do not click ready until you make sure the trade is good to go. 6. Charge back scam
This scam involves someone charging back the amount of money he sent you after receiving the item. The scammer sends funds over Paypal or a similar service, then, after receiving the item from you, contacts his/her bank to protest the transaction. The money returns to the scammer and they get away with the item.
Avoiding them: Make sure the person you're trading with has enough rep and is trustworthy. Avoid too good to be true deals and selling big stuff all at once, like hooks, timebreakers, and unusuals unless they're to a trustworthy person. Moneypak and BitCoin are non-refundable, but require more effort on the buyer's side.
For Chargeback scams, we should also recommend that (for maximum risk avoidance) that the buyer's cash rep should extend much far beyond 90 days in the past. In an ideal world, you are never selling to someone with lots of cash rep that only goes 90 days back (the most common chargeback window for PayPal purchases). As a rule of thumb selling anything major, ignore any cash rep in the last 90 days and your ideal scenario is that their older cash rep should definitely total more than what the current transaction is. That way you have a sign that they are invested in their rep and aren't gaining more by charging back than they are giving up in historical reputation they've built up. 7. Delayed Payment Scam - thecommieduck
This scam involves someone asking you to give/borrow him an item or two for a short period of time. After you've given him the item, he'll delete you with your items.
Avoiding them: Never lend an item you aren't willing to lose to find out if your friend is a traitor. 8. Fake profile rep
Whenever you're doing a high-value/ cash trades, please be aware that Steam profile rep can easily be faked. Never trust the amount of profile rep one has when doing such trades. Comments can be deleted by the owner of the profile, so negative rep will always be lost. 9. Two-man (tag team) scam
There are a couple of variations on this tricky scam. In the first variation, a person adds you. He says he wants to buy an item for a high price (more than the usual price). A second person gets in contact to say they are selling the very same item that person one wants to buy. So you buy it from person 2 at the price they ask for, then both people delete you and you're stuck with an item you didn't want to begin with.
In the second variation, person A says he has the new pudge hair. When you add him he says his brother works at Valve and got a bunch of promo codes that will activate the pudge hair. He then all of a sudden add another person (B) in to the chat. Person B says he wants the pudge hair and person A says "it is a code" and person B will be say "hey, it's okay, I want the code, I will trade you so and so." You now get nervous and think you might miss the deal and you will outbid him. You trade him the item and he removes you.
Avoiding the scam: Never, ever rush trades. If it's too good to be true, it is
. Always take your time and this scam will not happen. Also, trading for codes is dangerous. 10. Fake items/nametag scam
This scam relies on the trader's inability to distinguish between a real item and a faked item with a name tag or description tag. Simply put, the scammer renames and describes an item similar to the one you think you are trading for. If you do not notice the difference, you trade for the fraudulent item and lose in the trade.
Avoiding the scam: Check the item in the trade window multiple times to make sure. It will say whether the item was renamed or not. Also check the match ID if it is a faked tournament item. 11. Trade offeSteam Wallet scam
This scam revolves around the Steam Trade Offers feature, and plays on an old scam at the same time. The scammer sends you a trade offer for your items, offering nothing in return, and types in the message box that they are offering you Steam Wallet. You accept the offer and they never send the Steam Wallet, so you lose your items.
Avoiding the scam: NEVER accept Steam Trade Offers where you receive nothing, unless you are certain
that this is correct. Also, you will never receive any messages saying that someone is offering you Steam Wallet. Thanks to - thecommieduck, thorax, cdxliv, neocow, anonymousdeity, EXAX, mostlylurkingmostly, Rhys13th and others.
Free Download Profitunity Trading System Bitcoin Trader En Shark Tank Ncfm Options Trading Strategies Module Mock Test. Successful Algorithmic Trading Pdf Free Option Trading Video Tutorial Free. Diablo 3 How to Trade With Friends Xbox One Bitcoin Profit Trading Jobs Los Angeles. An Introduction to Options Trading Pdf. Kaskus Belajar Bitcoin ... For example, successful traders always follow the Qt Bitcoin Comerciante De Revision situation in the world, follow the fundamental news, conduct daily technical analysis. But this is not enough! We must understand Qt Bitcoin Comerciante De Revision how they affect the financial and Qt Bitcoin Comerciante De Revision economic situation. site:example.com find submissions from "example.com" url:text search for "text" in url selftext:text search for "text" in self post contents self:yes (or self:no) include (or exclude) self posts nsfw:yes (or nsfw:no) include (or exclude) results marked as NSFW. e.g. subreddit:aww site:imgur.com dog. see the search faq for details. Rules. Be excellent to each other. You are expected to treat everyone with a certain level of respect. Discussion should relate to bitcoin trading. Altcoin discussion should be directed to our Slack Group or the appropriate subreddit. No memes or low effort content. Posts that are solely comprised of memes, irrelevant youtube videos or similar ... For example, for a 64-bit tar archive in your current directory, the command is: tar xzf bitcoin-0.20.1-x86_64-linux-gnu.tar.gz This will create the directory bitcoin-0.20.1 within your current working directory. We will install the contents of its bin subdirectory into the /usr/local/bin directory using the the install command. The install command is part of the GNU coreutils available on ...
C++ Qt 5 - Displaying Windows - Duration: 10 ... C# Development Tutorial Voice Recognition - Duration: 15:18. Johnny Manson 182,633 views. 15:18. Realtime Audio Plotting with Python, QT, and ... JL Script - new script language for advanced Bitcoin traders. On this video you can see example of voice notifications. Official application page: https://ce... Standalone Bitcoin Offline Wallet Printer Demo BITCOIN PRICE , BITCOIN FUTURE in doubt http://youtu.be/eO-yrpQpIT8 What is NAMECOIN BITCOIN'S First Fork http... How To Get Around The PDT Rule with a Small Account - Duration: 12 ... Tutorial Guide - Duration: 15:14. ... Bitcoin Trading for Beginners (A Guide in Plain English) - Duration: 18:48. 99Bitcoins ... Discover the latest video on Phemex Trading Tutorial video presentation on how to trade subject, where to trade, how to deposit, how to withdraw and everything that is necessary.